File: 06-ldflags.patch

package info (click to toggle)
pth 2.0.7-22
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,656 kB
  • sloc: sh: 9,722; ansic: 8,517; makefile: 1,462; perl: 112
file content (21 lines) | stat: -rw-r--r-- 887 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: LDFLAGS for shared library build
Author: NIIBE Yutaka
Last_Update: 2013-07-08

Index: pth/Makefile.in
===================================================================
--- pth.orig/Makefile.in
+++ pth/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