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

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