summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth/pam_passwdqc/files/pam_passwdqc-1.0.5-makefile.patch')
-rw-r--r--sys-auth/pam_passwdqc/files/pam_passwdqc-1.0.5-makefile.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys-auth/pam_passwdqc/files/pam_passwdqc-1.0.5-makefile.patch b/sys-auth/pam_passwdqc/files/pam_passwdqc-1.0.5-makefile.patch
new file mode 100644
index 00000000000..20375b76a38
--- /dev/null
+++ b/sys-auth/pam_passwdqc/files/pam_passwdqc-1.0.5-makefile.patch
@@ -0,0 +1,35 @@
+Index: pam_passwdqc-1.0.5/Makefile
+===================================================================
+--- pam_passwdqc-1.0.5.orig/Makefile
++++ pam_passwdqc-1.0.5/Makefile
+@@ -7,8 +7,8 @@ LD = $(CC)
+ RM = rm -f
+ MKDIR = mkdir -p
+ INSTALL = install -c
+-CFLAGS = -Wall -fPIC -O2
+-LDFLAGS = --shared
++CFLAGS = -Wall -fPIC -O2 $(OPTCFLAGS)
++LDFLAGS_GENERIC = --shared
+ LDFLAGS_LINUX = --shared -Wl,--version-script,$(MAP)
+ LDFLAGS_SUN = -G
+ LDFLAGS_HP = -b
+@@ -41,16 +41,16 @@ MAP = pam_passwdqc.map
+ all:
+ case "`uname -s`" in \
+ Linux) $(MAKE) CFLAGS="$(CFLAGS) -DHAVE_SHADOW" \
+- LDFLAGS="$(LDFLAGS_LINUX)" LDLIBS="$(LDLIBS_LINUX)" \
++ LDFLAGS="$(LDFLAGS) $(LDFLAGS_LINUX)" LDLIBS="$(LDLIBS_LINUX)" \
+ $(PROJ);; \
+ SunOS) $(MAKE) CFLAGS="$(CFLAGS) -DHAVE_SHADOW" \
+- LD=ld LDFLAGS="$(LDFLAGS_SUN)" LDLIBS="$(LDLIBS_SUN)" \
++ LD=ld LDFLAGS="$(LDFLAGS) $(LDFLAGS_SUN)" LDLIBS="$(LDLIBS_SUN)" \
+ $(PROJ);; \
+ HP-UX) $(MAKE) CFLAGS="$(CFLAGS) -DHAVE_SHADOW" \
+- LD=ld LDFLAGS="$(LDFLAGS_HP)" LDLIBS="$(LDLIBS_HP)" \
++ LD=ld LDFLAGS="$(LDFLAGS) $(LDFLAGS_HP)" LDLIBS="$(LDLIBS_HP)" \
+ $(PROJ);; \
+- *) $(MAKE) $(PROJ);; \
++ *) $(MAKE) LDFLAGS="$(LDFLAGS) $(LDFLAGS_GENERIC)" $(PROJ);; \
+ esac
+
+ $(LIBSHARED): $(OBJS) $(MAP)