swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 55dacbb35e0fcb53051499ae231cdb1dbdb10d16
parent dc5b2cba631b31d5f15bf920ad3b801efbf3ac07
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 25 Nov 2013 13:57:54 -0800

Use FINAL_CFLAGS instead of override

Diffstat:
MMakefile | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -27,11 +27,12 @@ define check_deps @$(PKG_CONFIG) --exists --print-errors $2 endef -override CFLAGS += -fvisibility=hidden +FINAL_CFLAGS = $(CFLAGS) -fvisibility=hidden +FINAL_CPPFLAGS = $(CPPFLAGS) -compile = $(call quiet,CC) $(CPPFLAGS) $(CFLAGS) -I . -c -o $@ $< \ +compile = $(call quiet,CC) $(FINAL_CPPFLAGS) $(FINAL_CFLAGS) -I . -c -o $@ $< \ -MMD -MP -MF .deps/$(basename $<).d -MT $(basename $@).o -MT $(basename $@).lo -link = $(call quiet,CCLD,$(CC)) $(CFLAGS) -o $@ $^ +link = $(call quiet,CCLD,$(CC)) $(FINAL_CFLAGS) -o $@ $^ pkgconfig = $(sort $(foreach pkg,$(1),$(if $($(pkg)_$(3)),$($(pkg)_$(3)), \ $(shell $(PKG_CONFIG) --$(2) $(pkg)))))