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 26099976a..9132b3f76 100755
--- a/scripts/trylink
+++ b/scripts/trylink
@@ -51,10 +51,10 @@ check_cc() {
51 echo "int main(int argc,char**argv){return argv?argc:0;}" >"$tempname".c 51 echo "int main(int argc,char**argv){return argv?argc:0;}" >"$tempname".c
52 # Can use "-o /dev/null", but older gcc tend to *unlink it* on failure! :( 52 # Can use "-o /dev/null", but older gcc tend to *unlink it* on failure! :(
53 # Was using "-xc /dev/null", but we need a valid C program. 53 # Was using "-xc /dev/null", but we need a valid C program.
54 # "eval" is needed because CFLAGS can contain 54 # "eval" may be needed is CFLAGS can contain
55 # '... -D"BB_VER=KBUILD_STR(1.N.M)" ...' 55 # '... -D"BB_VER=KBUILD_STR(1.N.M)" ...'
56 # and we need shell to process quotes! 56 # and we need shell to process quotes!
57 eval $CC $CPPFLAGS $CFLAGS $1 "$tempname".c -o "$tempname" >/dev/null 2>&1 57 $CC $CFLAGS $1 "$tempname".c -o "$tempname" >/dev/null 2>&1
58 r=$? 58 r=$?
59 rm -f "$tempname" "$tempname".c "$tempname".o 59 rm -f "$tempname" "$tempname".c "$tempname".o
60 return $r 60 return $r
@@ -70,7 +70,7 @@ check_libc_is_glibc() {
70 syntax error here 70 syntax error here
71 #endif 71 #endif
72 " >"$tempname".c 72 " >"$tempname".c
73 $CC $CPPFLAGS $CFLAGS "$tempname".c -c -o "$tempname".o >/dev/null 2>&1 73 ! $CC $CFLAGS "$tempname".c -c -o "$tempname".o >/dev/null 2>&1
74 r=$? 74 r=$?
75 rm -f "$tempname" "$tempname".c "$tempname".o 75 rm -f "$tempname" "$tempname".c "$tempname".o
76 return $r 76 return $r