summaryrefslogtreecommitdiff
path: root/Makefile.tools
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.tools
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.tools')
-rw-r--r--Makefile.tools2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.tools b/Makefile.tools
index cdfaaf906..55e769d8c 100644
--- a/Makefile.tools
+++ b/Makefile.tools
@@ -469,6 +469,6 @@ if BTPCLIENT
noinst_PROGRAMS += tools/btpclient
tools_btpclient_SOURCES = tools/btpclient.c src/shared/btp.c src/shared/btp.h
-tools_btpclient_CFLAGS = $(AM_CFLAGS) $(ELL_CFLAGS)
+tools_btpclient_CPPFLAGS = $(AM_CPPFLAGS) $(ELL_CFLAGS)
tools_btpclient_LDADD = $(ELL_LIBS) lib/libbluetooth-internal.la
endif