aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/trylink6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/trylink b/scripts/trylink
index 4fea6fe76..f57a8a160 100755
--- a/scripts/trylink
+++ b/scripts/trylink
@@ -104,11 +104,11 @@ while test "$LDLIBS"; do
104 -Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \ 104 -Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
105 $l_list 105 $l_list
106 if test $? = 0; then 106 if test $? = 0; then
107 echo "Library $one is not needed" 107 echo " Library $one is not needed"
108 LDLIBS="$without_one" 108 LDLIBS="$without_one"
109 all_needed=false 109 all_needed=false
110 else 110 else
111 echo "Library $one is needed" 111 echo " Library $one is needed"
112 fi 112 fi
113 done 113 done
114 # All libs were needed, can't remove any 114 # All libs were needed, can't remove any
@@ -120,7 +120,7 @@ while test "$LDLIBS"; do
120done 120done
121 121
122# Make the binary with final, minimal list of libs 122# Make the binary with final, minimal list of libs
123echo "Final link with: $LDLIBS" 123echo "Final link with: ${LDLIBS:-<none>}"
124l_list=`echo "$LDLIBS" | sed -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'` 124l_list=`echo "$LDLIBS" | sed -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'`
125test "x$l_list" != "x" && l_list="-Wl,--start-group $l_list -Wl,--end-group" 125test "x$l_list" != "x" && l_list="-Wl,--start-group $l_list -Wl,--end-group"
126# --verbose gives us gobs of info to stdout (e.g. linker script used) 126# --verbose gives us gobs of info to stdout (e.g. linker script used)