Skip to content

Commit

Permalink
make output a little more friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Nov 18, 2007
1 parent e13bd36 commit 49d1589
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/trylink
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ while test "$LDLIBS"; do
-Wl,--start-group $O_FILES $A_FILES -Wl,--end-group \
$l_list
if test $? = 0; then
echo "Library $one is not needed"
echo " Library $one is not needed"
LDLIBS="$without_one"
all_needed=false
else
echo "Library $one is needed"
echo " Library $one is needed"
fi
done
# All libs were needed, can't remove any
Expand All @@ -120,7 +120,7 @@ while test "$LDLIBS"; do
done

# Make the binary with final, minimal list of libs
echo "Final link with: $LDLIBS"
echo "Final link with: ${LDLIBS:-<none>}"
l_list=`echo "$LDLIBS" | sed -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'`
test "x$l_list" != "x" && l_list="-Wl,--start-group $l_list -Wl,--end-group"
# --verbose gives us gobs of info to stdout (e.g. linker script used)
Expand Down

0 comments on commit 49d1589

Please sign in to comment.