summaryrefslogtreecommitdiff
path: root/Makefile.obexd
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2018-11-25 10:20:08 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2018-11-26 11:24:35 +0200
commit06dbb223fbe50acc48b3ba1d33cb424275b4baaa (patch)
tree09125df0b60ca32810d99d4bb73c1be981a74bf6 /Makefile.obexd
parent069c65023ab64ac2aefcf6a4254c8b8fac2d9df0 (diff)
downloadbluez-06dbb223fbe50acc48b3ba1d33cb424275b4baaa.tar.gz
build: -D/-I arguments go into CPPFLAGS
-D and -I are preprocessor directives, they are therefore to appear in CPPFLAGS, not CFLAGS. (It is unfortunate that pkg-config does not make the distinction / or it was misnamed, because only -D/-I make sense to be emitted by pkg-config in the first place — anything else (-f/-m) has the potential to mess up someone's compilation. So pkg-config's Cflags is actually used to convery Cppflags.)
Diffstat (limited to 'Makefile.obexd')
-rw-r--r--Makefile.obexd7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.obexd b/Makefile.obexd
index 9180d7eea..22a4977ef 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -83,12 +83,13 @@ obexd_src_obexd_LDADD = lib/libbluetooth-internal.la \
obexd_src_obexd_LDFLAGS = -Wl,--export-dynamic
-obexd_src_obexd_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) \
+obexd_src_obexd_CPPFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) \
$(ICAL_CFLAGS) -DOBEX_PLUGIN_BUILTIN \
-DPLUGINDIR=\""$(obex_plugindir)"\" \
- -fPIC -D_FILE_OFFSET_BITS=64
+ -D_FILE_OFFSET_BITS=64 \
+ -I$(builddir)/lib -I$(builddir)/obexd/src
-obexd_src_obexd_CPPFLAGS = -I$(builddir)/lib -I$(builddir)/obexd/src
+obexd_src_obexd_CFLAGS = -fPIC
endif