diff options
-rwxr-xr-x | scripts/trylink | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/trylink b/scripts/trylink index 7ea1d5cad..8c8854679 100755 --- a/scripts/trylink +++ b/scripts/trylink | |||
@@ -99,6 +99,11 @@ else | |||
99 | fi | 99 | fi |
100 | )` | 100 | )` |
101 | 101 | ||
102 | # The --gc-sections option is not supported by older versions of ld | ||
103 | if test -n "$GC_SECTIONS"; then | ||
104 | GC_SECTIONS=`check_cc "$GC_SECTIONS" ""` | ||
105 | fi | ||
106 | |||
102 | # Sanitize lib list (dups, extra spaces etc) | 107 | # Sanitize lib list (dups, extra spaces etc) |
103 | LDLIBS=`echo "$LDLIBS" | xargs -n1 | sort | uniq | xargs` | 108 | LDLIBS=`echo "$LDLIBS" | xargs -n1 | sort | uniq | xargs` |
104 | 109 | ||