summaryrefslogtreecommitdiffstats
path: root/main/pth/pth-2.0.6-ldflags.patch
blob: 7a4a5ab30000a2db1869807e5cbfb7a93e9ec5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: pth-2.0.6/Makefile.in
===================================================================
--- pth-2.0.6.orig/Makefile.in
+++ pth-2.0.6/Makefile.in
@@ -168,10 +168,10 @@ pth_p.h: $(S)pth_p.h.in
 
 #   build the static and possibly shared libraries
 libpth.la: $(LOBJS)
-	$(LIBTOOL) --mode=link --quiet $(CC) -o libpth.la $(LOBJS) \
+	$(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o libpth.la $(LOBJS) \
 	-rpath $(libdir) -version-info `$(SHTOOL) version -lc -dlibtool $(_VERSION_FILE)`
 libpthread.la: pthread.lo $(LOBJS)
-	$(LIBTOOL) --mode=link --quiet $(CC) -o libpthread.la pthread.lo $(LOBJS) \
+	$(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o libpthread.la pthread.lo $(LOBJS) \
 	-rpath $(libdir) -version-info `$(SHTOOL) version -lc -dlibtool $(_VERSION_FILE)`
 
 #   build the manual pages