Blame SOURCES/0001-autoconf-Use-DEFS-when-building-idmapwb.so.patch

40fde1
From c9f1860e0de31cc4e1e1fa70ef7842fbbee62878 Mon Sep 17 00:00:00 2001
40fde1
From: Sachin Prabhu <sprabhu@redhat.com>
40fde1
Date: Thu, 30 Jun 2016 15:47:39 +0100
40fde1
Subject: [PATCH] autoconf: Use $(DEFS) when building idmapwb.so
40fde1
40fde1
Partial backport of upstream
40fde1
7b2b35586d10c04f501222701c3382455a07ff9e
40fde1
40fde1
We do not backport changes to the pam_cifscreds.so module as that is not
40fde1
included in the RHEL 7 cifs-utils package.
40fde1
40fde1
Original Summary:
40fde1
We should pass the macros defined in $(DEFS) when building idmapwb.so
40fde1
and pam_cifscreds.so. The autoconf process sets the macro HAVE_CONFIG_H
40fde1
using the $(DEFS) variable. This macro has to be defined to allow the
40fde1
source files to include config.h
40fde1
40fde1
Resolves: bz 1289454
40fde1
40fde1
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
40fde1
---
40fde1
 Makefile.am | 2 +-
40fde1
 1 file changed, 1 insertion(+), 1 deletion(-)
40fde1
40fde1
diff --git a/Makefile.am b/Makefile.am
40fde1
index 6407520..1c97f45 100644
40fde1
--- a/Makefile.am
40fde1
+++ b/Makefile.am
40fde1
@@ -84,7 +84,7 @@ plugin_PROGRAMS = idmapwb.so
40fde1
 man_MANS += idmapwb.8
40fde1
 
40fde1
 idmapwb.so: idmapwb.c
40fde1
-	$(CC) $(CFLAGS) $(AM_CFLAGS) $(WBCLIENT_CFLAGS) $(LDFLAGS) -shared -fpic -o $@ $+ $(WBCLIENT_LIBS)
40fde1
+	$(CC) $(DEFS) $(CFLAGS) $(AM_CFLAGS) $(WBCLIENT_CFLAGS) $(LDFLAGS) -shared -fpic -o $@ $+ $(WBCLIENT_LIBS)
40fde1
 
40fde1
 idmapwb.8: idmapwb.8.in
40fde1
 	$(SED) 's,[@]pluginpath@,$(pluginpath),' $(srcdir)/$@.in > $@-t && mv $@-t $@
40fde1
-- 
40fde1
2.5.5
40fde1