configure: Don't use "-Wl,--no-undefined" in "sdl2-config --static-libs" Fixes #3788.
diff --git a/configure b/configure
index de31eba..b1a6c24 100755
--- a/configure
+++ b/configure
@@ -16380,7 +16380,7 @@ _ACEOF
if ac_fn_c_try_link "$LINENO"; then :
have_no_undefined=yes
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
+ BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
fi
rm -f core conftest.err conftest.$ac_objext \
diff --git a/configure.ac b/configure.ac
index 16eedb0..e289966 100644
--- a/configure.ac
+++ b/configure.ac
@@ -244,7 +244,7 @@ case "$host" in
],[
],[
have_no_undefined=yes
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
+ BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
])
LDFLAGS="$save_LDFLAGS"
;;