summaryrefslogtreecommitdiff
path: root/security/PAM/patches/patch-ae
blob: 34af2839d091ec87ee010715ac876ae25dca45c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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)