File bzflag-2.4.0-as_needed.patch of Package bzflag

Index: configure
===================================================================
--- configure.orig
+++ configure
@@ -20702,8 +20702,8 @@ ares_works=no
 if test "x$enable_ares_build" != "xyes" ; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares DNS lookup functionality" >&5
 $as_echo_n "checking for ares DNS lookup functionality... " >&6; }
-    PRELDFLAGS="$LDFLAGS"
-    LDFLAGS="$LDFLAGS $LIBCARES"
+    PRELIBS="$LIBS"
+    LIBS="$LIBS $LIBCARES"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -20733,7 +20733,7 @@ else
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
-    LDFLAGS="$PRELDFLAGS"
+    LIBS="$PRELIBS"
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ares_works" >&5
 $as_echo "$ares_works" >&6; }
 fi # enable_ares_build
openSUSE Build Service is sponsored by