summaryrefslogtreecommitdiff
path: root/mbone/common-mml/patches/patch-ab
blob: 395cf37c5edf7fdc51c80d44464bb68c59bfe436 (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
$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 09:46:00 hubertf Exp $

--- Makefile.in.orig	Tue May 16 19:02:48 2000
+++ Makefile.in
@@ -6,11 +6,11 @@
 DEFS   = @DEFS@
 CFLAGS = @CFLAGS@ $(DEFS)
 LIBS   = @LIBS@
-CC     = @CC@
+CC     = ${LIBTOOL} @CC@
 AR     = ar
 RANLIB = @RANLIB@
 HOST   = @host@
-TARGET = libuclmmbase.a
+TARGET = libuclmmbase.la
 
 exec_prefix=@exec_prefix@
 
@@ -30,8 +30,8 @@
 	$(CC) $(TEST_OBJS) $(CFLAGS) $(TARGET) $(LIBS) -o test-libcommon
 	
 $(TARGET): $(OBJS)
-	$(AR) r $(TARGET) $(OBJS)
-	$(RANLIB) $(TARGET)
+	$(CC) $(OBJS:S/.o/.lo/) -o $(TARGET) \
+		-rpath ${PREFIX}/lib -version-info 1:2:0
 
 version.h:	VERSION
 	sed -e 's/.*/#define CCL_VERSION "v&"/' VERSION > version.h
@@ -57,3 +57,5 @@
 depend: $(SRCS)
 	makedepend $(DEFS) $(INC) $(SRCS)
 
+install:
+	${LIBTOOL} install -c ${TARGET} ${PREFIX}/lib