summaryrefslogtreecommitdiff
path: root/security/pam-passwdqc/patches/patch-aa
blob: 88bf4f8840bc1feca343ce2b3818227beb52eec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-aa,v 1.2 2009/11/18 16:59:30 drochner Exp $

--- Makefile.orig	2009-10-27 02:45:50.000000000 +0100
+++ Makefile
@@ -30,18 +30,18 @@ INCLUDEDIR = /usr/include
 MANDIR = /usr/share/man
 DESTDIR =
 
-CC = gcc
-LD = $(CC)
+#CC = gcc
+#LD = $(CC)
 LD_lib = $(LD)
 RM = rm -f
 LN_s = ln -s -f
 MKDIR = umask 022 && mkdir -p
 INSTALL = install -c
-CFLAGS = -Wall -O2
+#CFLAGS = -Wall -O2
 CFLAGS_lib = $(CFLAGS) -fPIC
 CFLAGS_bin = $(CFLAGS) -fomit-frame-pointer
 
-LDFLAGS =
+#LDFLAGS =
 LDFLAGS_shared = --shared
 LDFLAGS_shared_LINUX = --shared
 LDFLAGS_shared_SUN = -G
@@ -119,7 +119,7 @@ $(DEVEL_LIB): $(SHARED_LIB)
 	$(LN_s) $(SHARED_LIB) $(DEVEL_LIB)
 
 $(SHARED_PAM): $(OBJS_PAM) $(MAP_PAM) $(DEVEL_LIB)
-	$(LD_lib) $(LDFLAGS_pam) $(OBJS_PAM) $(LDLIBS_pam) -L. -lpasswdqc -o $(SHARED_PAM)
+	$(LD_lib) $(LDFLAGS_pam) $(OBJS_PAM) $(LDLIBS_pam) -L. -Wl,-R${PREFIX}/lib -lpasswdqc -o $(SHARED_PAM)
 
 pwqgen: $(OBJS_GEN) $(DEVEL_LIB)
 	$(LD) $(LDFLAGS) $(OBJS_GEN) -L. -lpasswdqc -o $@