diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure index 25586ff080..aef8058fe1 100755 --- a/configure +++ b/configure @@ -1541,10 +1541,11 @@ if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <<\EOF -main () { exit (0); } +_start () {} EOF -if ${CC-cc} $CFLAGS -Wl,--no-whole-archive \ - -o conftest conftest.c 2>/dev/null; then +if { ac_try='${CC-cc} $CFLAGS \ + -nostdlib -nostartfiles -Wl,--no-whole-archive \ + -o conftest conftest.c'; { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then libc_cv_ld_no_whole_archive=yes else libc_cv_ld_no_whole_archive=no |