blob: b6cfef6400223b9e38e7b2e2ea9d1ee1b1932f52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-aa,v 1.6 2001/10/25 16:19:35 tron Exp $
--- build/mod.mk.orig Wed Oct 4 17:21:30 2000
+++ build/mod.mk Thu Oct 25 17:02:15 2001
@@ -10,10 +10,14 @@
LIBRARY = $(LIBBASE).la
LIBSTAT = lib$(LIBBASE).a
-LTFLAGS = --only-$(LINKAGE)
+.if ($(LINKAGE) == static)
+LTFLAGS = -static
+.else
+LTFLAGS =
+.endif
-COMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CFLAGS) $(MODDEFS) -c
-LTLIBLINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -rpath $(moduledir) \
+COMPILE = $(LIBTOOL) --mode=compile $(CC) $(LTFLAGS) $(CFLAGS) $(MODDEFS) -c
+LTLIBLINK = $(LIBTOOL) --mode=link $(CC) $(LTFLAGS) -rpath $(moduledir) \
$(CFLAGS) $(LDFLAGS) $(LTVERSION) $(LT_NO_UNDEF)
MKDEPFLAG = -l
|