mk/prog.mk: fix warning with clang; use PROG_CFLAGS.
This commit is contained in:
parent
4c22511d17
commit
8d2aaff3e1
@ -10,6 +10,8 @@ ifdef BUILD_STATIC
|
|||||||
BINS += $(BIN).static
|
BINS += $(BIN).static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
CFLAGS += -Wno-unused-command-line-argument
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(BINS)
|
all: $(BINS)
|
||||||
|
|
||||||
@ -42,7 +44,7 @@ endif
|
|||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@printf " [CC]\t\t$@\n"
|
@printf " [CC]\t\t$@\n"
|
||||||
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
|
${SILENT}$(CC) $(CPPFLAGS) $(PROG_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
|
||||||
|
|
||||||
$(BIN).static: $(OBJS) $(TOPDIR)/lib/libxbps.a
|
$(BIN).static: $(OBJS) $(TOPDIR)/lib/libxbps.a
|
||||||
@printf " [CCLD]\t\t$@\n"
|
@printf " [CCLD]\t\t$@\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user