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)