summaryrefslogtreecommitdiffstats
path: root/gdbus.mk
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2016-06-19 20:53:35 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2016-06-21 14:03:54 -0400
commitc034d2d366aed74662fcde471bd20b39a55aca0e (patch)
treed3ba932c347bc72bff0fe1b1ac4b3855fde4cef5 /gdbus.mk
parentcbe32133dadf0945357e2bec67aa7a86ae9f0295 (diff)
downloadtalos-skeleton-c034d2d366aed74662fcde471bd20b39a55aca0e.tar.gz
talos-skeleton-c034d2d366aed74662fcde471bd20b39a55aca0e.zip
Enable user-overriable CFLAGS
Put required CFLAGS (ie pkg-config --cflags) in ALL_CFLAGS and append user specified CFLAGS to that. Use CFLAGS during link. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'gdbus.mk')
-rw-r--r--gdbus.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbus.mk b/gdbus.mk
index dcbf6c9..4b320cb 100644
--- a/gdbus.mk
+++ b/gdbus.mk
@@ -1,5 +1,5 @@
PACKAGE_DEPS=gio-unix-2.0 glib-2.0
-CFLAGS+=-iquote ../gdbus -iquote ../libopenbmc_intf
+ALL_CFLAGS+=-iquote ../gdbus -iquote ../libopenbmc_intf
LIBOBMC=$(TOP)/libopenbmc_intf/libopenbmc_intf.so.1
EXTRA_OBJS+=$(LIBOBMC)
@@ -8,4 +8,4 @@ $(LIBOBMC):
$(MAKE) -C $(TOP)/libopenbmc_intf
%.o: %_obj.c
- $(CC) -c $(CFLAGS) -fPIC -o $@ $<
+ $(CC) -c $(ALL_CFLAGS) -o $@ $<
OpenPOWER on IntegriCloud