| 1 |
Description: List lib dependencies in the right order for -Wl,--as-needed |
| 2 |
With -Wl,--as-needed, libraries which don't provide any symbols that are |
| 3 |
referenced are dropped from the final linkage, which means libraries must |
| 4 |
be listed on the commandline after what depends on them in order to avoid a |
| 5 |
build failure. |
| 6 |
Author: Steve Langasek <[email protected]> |
| 7 |
|
| 8 |
Index: atom4-4.1/Construct |
| 9 |
=================================================================== |
| 10 |
--- atom4-4.1.orig/Construct |
| 11 |
+++ atom4-4.1/Construct |
| 12 |
@@ -88,7 +88,7 @@ |
| 13 |
# Local configuration |
| 14 |
$INCPATH = "$INCDIR:$PROGLIBPATH/include"; |
| 15 |
$LIBPATH = "$PROGLIBPATH/lib:$LIBDIR:$X11LIBPATH"; |
| 16 |
-$LIBS = "$PROGLIB $NCURSESLIB $X11LIB -latom4 -lxatom4"; |
| 17 |
+$LIBS = "$PROGLIB -lxatom4 -latom4 $NCURSESLIB $X11LIB"; |
| 18 |
$LIBS .= " -pg" if $PROFILE; |
| 19 |
|
| 20 |
$CONS = new cons( |
| 21 |
Index: atom4-4.1/SConstruct |
| 22 |
=================================================================== |
| 23 |
--- atom4-4.1.orig/SConstruct |
| 24 |
+++ atom4-4.1/SConstruct |
| 25 |
@@ -57,7 +57,7 @@ |
| 26 |
# Local configuration |
| 27 |
incpath = [ incdir, proglibpath + '/include' ] |
| 28 |
libpath = [ proglibpath + '/lib', libdir, x11libpath ] |
| 29 |
-libs = [ proglib, ncurseslib, x11lib, '-latom4', '-lxatom4' ]; |
| 30 |
+libs = [ proglib, '-lxatom4', '-latom4', ncurseslib, x11lib ]; |
| 31 |
if profile: |
| 32 |
libs += '-pg' |
| 33 |
|