summaryrefslogtreecommitdiff
path: root/security/libcrack/patches/patch-ab
blob: 58c3e1f62c9b20080b8dffcf6d2d1d6ad94949ab (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
$NetBSD: patch-ab,v 1.1.1.1 2000/10/21 09:26:21 rh Exp $

--- cracklib/Makefile.orig	Sun Dec 14 23:49:21 1997
+++ cracklib/Makefile
@@ -7,12 +7,16 @@
 ###
 
 LIB=	libcrack.a
-OBJ=	fascist.o packlib.o rules.o stringlib.o
-CFLAGS= -O -I../cracklib -DIN_CRACKLIB
+OBJS=	fascist.o packlib.o rules.o stringlib.o
+CFLAGS+= -I../cracklib -DIN_CRACKLIB
 
-$(LIB):	$(OBJ)
-	ar rv $(LIB) $?
-	-ranlib $(LIB)
+all:	${LIB}
+
+.c.o:
+	${LIBTOOL} --mode=compile ${CC} ${CFLAGS} ${.IMPSRC} -c -o ${.TARGET}
+
+${LIB}:	${OBJS}
+	${LIBTOOL} --mode=link ${CC} -o ${.TARGET:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 2:7
 
 clean:
 	-rm -f $(OBJ) $(LIB) *~