openldap plugin: use CPPFLAGS instead of CFLAGS
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 18:42:36 +0000 (20:42 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 18:43:01 +0000 (20:43 +0200)
src/Makefile.am

index 77784b2..abc560b 100644 (file)
@@ -764,8 +764,8 @@ endif
 if BUILD_PLUGIN_OPENLDAP
 pkglib_LTLIBRARIES += openldap.la
 openldap_la_SOURCES = openldap.c
+openldap_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBLDAP_CPPFLAGS)
 openldap_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_LIBLDAP_LDFLAGS)
-openldap_la_CFLAGS = $(AM_CFLAGS) $(BUILD_WITH_LIBLDAP_CPPFLAGS)
 openldap_la_LIBADD = -lldap
 endif