Skip to content

Commit

Permalink
trylink: don't use ld --gc-sections if ld doesn't support it
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
  • Loading branch information
Denys Vlasenko committed Jun 26, 2009
1 parent 7e60343 commit eb1cda2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/trylink
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ else
fi
)`

# The --gc-sections option is not supported by older versions of ld
if test -n "$GC_SECTIONS"; then
GC_SECTIONS=`check_cc "$GC_SECTIONS" ""`
fi

# Sanitize lib list (dups, extra spaces etc)
LDLIBS=`echo "$LDLIBS" | xargs -n1 | sort | uniq | xargs`

Expand Down

0 comments on commit eb1cda2

Please sign in to comment.