diff options
author | Jan Engelhardt <jengelh@inai.de> | 2018-11-25 10:20:08 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-11-26 11:24:35 +0200 |
commit | 06dbb223fbe50acc48b3ba1d33cb424275b4baaa (patch) | |
tree | 09125df0b60ca32810d99d4bb73c1be981a74bf6 /Makefile.plugins | |
parent | 069c65023ab64ac2aefcf6a4254c8b8fac2d9df0 (diff) | |
download | bluez-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.plugins')
-rw-r--r-- | Makefile.plugins | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.plugins b/Makefile.plugins index d3cf5cab8..2aaeb7450 100644 --- a/Makefile.plugins +++ b/Makefile.plugins @@ -109,5 +109,6 @@ plugins_sixaxis_la_SOURCES = plugins/sixaxis.c plugins_sixaxis_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \ -no-undefined plugins_sixaxis_la_LIBADD = $(UDEV_LIBS) -plugins_sixaxis_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden $(UDEV_CFLAGS) +plugins_sixaxis_la_CPPFLAGS = $(AM_CPPFLAGS) $(UDEV_CFLAGS) +plugins_sixaxis_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden endif |