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) $@
|