diff --git a/test-dlopen/dlopen-autotools/m4/ld-version-script.m4 b/test-dlopen/dlopen-autotools/m4/ld-version-script.m4 index 3cfe0bb44..fabe54447 100644 --- a/test-dlopen/dlopen-autotools/m4/ld-version-script.m4 +++ b/test-dlopen/dlopen-autotools/m4/ld-version-script.m4 @@ -27,9 +27,13 @@ AC_DEFUN([gl_LD_VERSION_SCRIPT], save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" echo "{ global: *; };" > conftest.map - AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [ ])], [gl_cv_sys_ld_version_script=yes], [gl_cv_sys_ld_version_script=no]) + echo foo > conftest.map + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], + [gl_cv_sys_ld_version_script=no], + []) rm -f conftest.map LDFLAGS=$save_LDFLAGS]) have_ld_version_script=$gl_cv_sys_ld_version_script])