commit 55dacbb
Michael Forney
·
2013-11-25 21:57:54 +0000 UTC
parent dc5b2cb
Use FINAL_CFLAGS instead of override
1 files changed,
+4,
-3
M
Makefile
M
Makefile
+4,
-3
1@@ -27,11 +27,12 @@ define check_deps
2 @$(PKG_CONFIG) --exists --print-errors $2
3 endef
4
5-override CFLAGS += -fvisibility=hidden
6+FINAL_CFLAGS = $(CFLAGS) -fvisibility=hidden
7+FINAL_CPPFLAGS = $(CPPFLAGS)
8
9-compile = $(call quiet,CC) $(CPPFLAGS) $(CFLAGS) -I . -c -o $@ $< \
10+compile = $(call quiet,CC) $(FINAL_CPPFLAGS) $(FINAL_CFLAGS) -I . -c -o $@ $< \
11 -MMD -MP -MF .deps/$(basename $<).d -MT $(basename $@).o -MT $(basename $@).lo
12-link = $(call quiet,CCLD,$(CC)) $(CFLAGS) -o $@ $^
13+link = $(call quiet,CCLD,$(CC)) $(FINAL_CFLAGS) -o $@ $^
14 pkgconfig = $(sort $(foreach pkg,$(1),$(if $($(pkg)_$(3)),$($(pkg)_$(3)), \
15 $(shell $(PKG_CONFIG) --$(2) $(pkg)))))
16