summaryrefslogtreecommitdiff
path: root/archivers/nulib2/patches/patch-ab
blob: 77ae3bfbc377b513bf4a9013637f4d0789f2caaf (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.4 2003/07/15 09:36:46 agc 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-200/libnufx.a:
+	cd ../nufxlib-200 && $(MAKE)
+
+all: ../nufxlib-200/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