$NetBSD: patch-ae,v 1.4 2003/01/13 14:18:08 grant Exp $ --- libpam_misc/Makefile.orig Thu Jun 27 14:04:54 2002 +++ libpam_misc/Makefile @@ -16,7 +16,7 @@ VERSION=.$(MAJOR_REL) MODIFICATION=.$(MINOR_REL) CFLAGS += $(MOREFLAGS) $(DYNAMIC) $(STATIC) -LINKLIBS += -L$(absolute_objdir)/libpam -lpam +LINKLIBS += -L$(absolute_objdir)/libpam -lpam $(LDFLAGS) # dynamic library names @@ -86,7 +86,7 @@ ifeq ($(DYNAMIC_LIBPAM),yes) $(INSTALL) -m $(SHLIBMODE) $(LIBNAMED) $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL) $(LDCONFIG) ifneq ($(DYNTYPE),"sl") - ( cd $(FAKEROOT)$(libdir) ; rm -f $(LIBNAMED) ; ln -s $(LIBNAMEDNAME) $(LIBNAMED) ) + ( cd $(FAKEROOT)$(libdir) ; rm -f $(LIBNAMED) $(LIBNAMEDNAME); ln -s $(LIBNAMEDFULL) $(LIBNAMED); ln -s $(LIBNAMEDFULL) $(LIBNAMEDNAME) ) endif endif ifeq ($(STATIC_LIBPAM),yes)