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

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