summaryrefslogtreecommitdiff
path: root/scripts/trylink
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/trylink')
-rwxr-xr-xscripts/trylink2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/trylink b/scripts/trylink
index 6e1187e..3c431ed 100755
--- a/scripts/trylink
+++ b/scripts/trylink
@@ -54,7 +54,7 @@ check_cc() {
# "eval" may be needed if CFLAGS can contain
# '... -D"BB_VER=KBUILD_STR(1.N.M)" ...'
# and we need shell to process quotes!
- $CC $CFLAGS $1 "$tempname".c -o "$tempname" >/dev/null 2>&1
+ $CC $CFLAGS $LDFLAGS $1 "$tempname".c -o "$tempname" >/dev/null 2>&1
r=$?
rm -f "$tempname" "$tempname".c "$tempname".o
return $r