mk/prog.mk: fix warning with clang; use PROG_CFLAGS.

This commit is contained in:
Juan RP 2020-02-06 09:48:43 +01:00
parent 4c22511d17
commit 8d2aaff3e1
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -10,6 +10,8 @@ ifdef BUILD_STATIC
BINS += $(BIN).static
endif
CFLAGS += -Wno-unused-command-line-argument
.PHONY: all
all: $(BINS)
@ -42,7 +44,7 @@ endif
%.o: %.c
@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
@printf " [CCLD]\t\t$@\n"