diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2016-01-08 17:54:39 +0530 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2016-01-20 22:01:48 -0500 |
commit | 7b2b35586d10c04f501222701c3382455a07ff9e (patch) | |
tree | ff4b9f302ac474cb9ee2b4eb1ab0503a20f0677b | |
parent | be5046ae3fabca17f19672f7b4019efb6a869298 (diff) | |
download | cifs-utils-7b2b35586d10c04f501222701c3382455a07ff9e.tar.gz cifs-utils-7b2b35586d10c04f501222701c3382455a07ff9e.tar.bz2 cifs-utils-7b2b35586d10c04f501222701c3382455a07ff9e.zip |
autoconf: Use $(DEFS) when building idmapwb.so and pam_cifscreds.so
We should pass the macros defined in $(DEFS) when building idmapwb.so
and pam_cifscreds.so. The autoconf process sets the macro HAVE_CONFIG_H
using the $(DEFS) variable. This macro has to be defined to allow the
source files to include config.h
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 92da8b1..2e99e60 100644 --- a/Makefile.am +++ b/Makefile.am @@ -84,7 +84,7 @@ plugin_PROGRAMS = idmapwb.so man_MANS += idmapwb.8 idmapwb.so: idmapwb.c - $(CC) $(CFLAGS) $(AM_CFLAGS) $(WBCLIENT_CFLAGS) $(LDFLAGS) -shared -fpic -o $@ $+ $(WBCLIENT_LIBS) + $(CC) $(DEFS) $(CFLAGS) $(AM_CFLAGS) $(WBCLIENT_CFLAGS) $(LDFLAGS) -shared -fpic -o $@ $+ $(WBCLIENT_LIBS) idmapwb.8: idmapwb.8.in $(SED) 's,[@]pluginpath@,$(pluginpath),' $(srcdir)/$@.in > $@-t && mv $@-t $@ @@ -95,7 +95,7 @@ if CONFIG_PAM pam_PROGRAMS = pam_cifscreds.so pam_cifscreds.so: pam_cifscreds.c cifskey.c resolve_host.c util.c - $(CC) $(CFLAGS) $(AM_CFLAGS) $(LDFLAGS) -shared -fpic -o $@ $+ -lpam -lkeyutils + $(CC) $(DEFS) $(CFLAGS) $(AM_CFLAGS) $(LDFLAGS) -shared -fpic -o $@ $+ -lpam -lkeyutils man_MANS += pam_cifscreds.8 endif |