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.plugins | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.plugins') 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 -- cgit v1.2.1