summaryrefslogtreecommitdiff
path: root/devel/netcdf/patches/patch-ac
blob: 0f38540cf771078ffdb9152d7fdb7aa259eb8d56 (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
$NetBSD: patch-ac,v 1.1.1.1 1999/01/14 20:28:54 frueauf Exp $

--- rules.make.orig	Fri Dec 19 23:07:52 1997
+++ rules.make	Sun Sep 27 22:34:28 1998
@@ -55,8 +55,7 @@
 lib:		$(LIBRARY)
 
 $(LIBRARY):	$(LIB_OBJS) FORCE
-	$(AR) $(ARFLAGS) $@ $(LIB_OBJS)
-	$(RANLIB) $@
+	$(AR) $(ARFLAGS) -o ${.TARGET:.a=.la} ${LIB_OBJS:.o=.lo}
 
 #-------------------------------------------------------------------------------
 # Shared Libraries:
@@ -122,10 +121,10 @@
 	cp $(HEADER2) $@
 
 $(LIBDIR)/$(LIBRARY):	$(LIBDIR) $(LIBRARY)
-	cp $(LIBRARY) $@
+	${LIBTOOL} --mode=install cp $(LIBRARY) $@
 
 $(BINDIR)/$(PROGRAM):	$(BINDIR) $(PROGRAM)
-	cp $(PROGRAM) $@
+	${LIBTOOL} --mode=install cp $(PROGRAM) $@
 
 $(BINDIR) \
 $(INCDIR) \