File: linking-order.diff

package info (click to toggle)
libzeep 3.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,752 kB
  • sloc: cpp: 15,502; makefile: 113; xml: 45; ansic: 12
file content (18 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Logan Rosen <logan@ubuntu.com>
Last-Update: Wed, 17 Dec 2014 02:40:34 -0500
Bugs-Debian: http://bugs.debian.org/773339
Description: fix linking order for ld --as-needed
 You can read more about this option here:
 https://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

--- a/makefile
+++ b/makefile
@@ -62,7 +62,7 @@
 	ld -r -o $@ $(OBJECTS)
 
 $(LIB_NAME): $(OBJECTS)
-	$(CXX) -shared -o $@ -Wl,-soname=$(SO_NAME) $(LDFLAGS) $(OBJECTS)
+	$(CXX) -shared -o $@ -Wl,-soname=$(SO_NAME) $(OBJECTS) $(LDFLAGS)
 
 $(SO_NAME): $(LIB_NAME)
 	ln -fs $(LIB_NAME) $@