From 06dbb223fbe50acc48b3ba1d33cb424275b4baaa Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 25 Nov 2018 10:20:08 +0100 Subject: build: -D/-I arguments go into CPPFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -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.) --- Makefile.tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.tools') 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 -- cgit v1.2.1