diff options
Diffstat (limited to 'newlib/libm/machine/x86_64/configure')
-rwxr-xr-x | newlib/libm/machine/x86_64/configure | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/newlib/libm/machine/x86_64/configure b/newlib/libm/machine/x86_64/configure index 828a23135..b7e564df7 100755 --- a/newlib/libm/machine/x86_64/configure +++ b/newlib/libm/machine/x86_64/configure @@ -6309,7 +6309,15 @@ fi test -z "$AR" && AR=ar if test -n "$plugin_option"; then if $AR --help 2>&1 | grep -q "\--plugin"; then - AR="$AR $plugin_option" + touch conftest.c + $AR $plugin_option rc conftest.a conftest.c + if test "$?" != 0; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 +$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} + else + AR="$AR $plugin_option" + fi + rm -f conftest.* fi fi test -z "$AR_FLAGS" && AR_FLAGS=cru @@ -11416,7 +11424,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11419 "configure" +#line 11427 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11522,7 +11530,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11525 "configure" +#line 11533 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |