summaryrefslogtreecommitdiff
path: root/archivers/nulib2/patches/patch-ab
blob: 381e507a5e1e6c5f5047853682ff5579636201a9 (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.5 2004/11/29 04:50:35 tv Exp $

--- Makefile.in.orig	Mon May 22 20:42:57 2000
+++ Makefile.in
@@ -69,7 +69,11 @@
 # Build stuff
 #
 
-all: $(PRODUCT)
+# XXX - until pkgsrc has a sane way to invoke multiple "build" targets
+../nufxlib-203/libnufx.a:
+	cd ../nufxlib-203 && $(MAKE)
+
+all: ../nufxlib-203/libnufx.a $(PRODUCT)
 	@true
 
 install: $(PRODUCT)
@@ -97,7 +101,7 @@
 	@$(MAKE) PURIFY_BUILD=1
 
 $(PRODUCT): $(OBJS) $(NUFXLIB)
-	$(PURIFY) $(QUANTIFY) $(CC) -o $@ $(OBJS) -L$(NUFXSRCDIR) -L$(libdir) -lnufx @LIBS@
+	$(PURIFY) $(QUANTIFY) $(CC) -o $@ $(OBJS) -L$(NUFXSRCDIR) $(LDFLAGS) -lnufx @LIBS@
 
 clean:
 	-rm -f *.o core