summaryrefslogtreecommitdiff
blob: a14ca33b79cb29121a320eadc0e1b8153ef36cea (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
36
37
38
39
diff --git a/makerule.mk.in b/makerule.mk.in
index fa9a7e1..dc7210a 100644
--- a/makerule.mk.in
+++ b/makerule.mk.in
@@ -94,7 +94,7 @@ ALLDEFINES = $(INCLUDES) $(DEFINES)
 CFLAGS = @CFLAGS@ @CDEBUGFLAGS@ $(CCOPTIONS) @ipv6@ @DEFS@ $(ALLDEFINES)
 LIBS = @LIBS@
 LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
-LDOPTIONS = @CDEBUGFLAGS@ $(CCOPTIONS)
+LDOPTIONS = @CDEBUGFLAGS@ $(CCOPTIONS) $(LDFLAGS)
 
 
 #
diff --git a/Wnn/jlib.V3/Makefile.in b/Wnn/jlib.V3/Makefile.in
index 9d5b873..5b1bf23 100644
--- a/Wnn/jlib.V3/Makefile.in
+++ b/Wnn/jlib.V3/Makefile.in
@@ -76,7 +76,7 @@ includes::
 all:: libjd.la
 
 libjd.la: $(OBJS) $(EXTRALIBRARYDEPS)
-	$(LIBTOOL) $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
+	$(LIBTOOL) $(CC) -o $@ $(LDOPTIONS) $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
 
 lintlib:: llib-ljd.ln
 
diff --git a/Wnn/jlib/Makefile.in b/Wnn/jlib/Makefile.in
index 234dea2..6cc5739 100644
--- a/Wnn/jlib/Makefile.in
+++ b/Wnn/jlib/Makefile.in
@@ -101,7 +101,7 @@ clean::
 all:: libwnn.la
 
 libwnn.la: $(OBJS) $(EXTRALIBRARYDEPS)
-	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) @LIBS@ -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
+	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) $(LDOPTIONS) @LIBS@ -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
 
 lintlib:: llib-lwnn.ln