re PR bootstrap/48120 (libpwl test must use g++)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 21 Mar 2011 12:26:30 +0000 (12:26 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 21 Mar 2011 12:26:30 +0000 (12:26 +0000)
PR bootstrap/48120:
* configure.ac (pwllib): Use LIBS instead of LDFLAGS.
Add -lstdc++ -lm to LIBS.
* configure: Regenerate.

From-SVN: r171225

ChangeLog
configure
configure.ac

index 6be0c84b4fb7a99953726cf7b0f5075856312b4b..011b796a27e3bf85b0c3b693d77f7e9d4de55aac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR bootstrap/48120:
+       * configure.ac (pwllib): Use LIBS instead of LDFLAGS.
+       Add -lstdc++ -lm to LIBS.
+       * configure: Regenerate.
+
 2011-03-18  David Edelsohn  <dje.gcc@gmail.com>
 
        * config.guess: Update to version 2011-02-02
index 32f239ea4ed77dadb116e989fe80d6f49718b095..9725f92a0df00edd3cce18d47750d29a3a50da3f 100755 (executable)
--- a/configure
+++ b/configure
@@ -5725,8 +5725,8 @@ fi
 
 if test "x$with_ppl" != xno; then
   if test "x$pwllib" = x; then
-    saved_LDFLAGS="$LDFLAGS"
-    LDFLAGS="$LDFLAGS $ppllibs"
+    saved_LIBS="$LIBS"
+    LIBS="$LIBS $ppllibs -lstdc++ -lm"
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
@@ -5767,7 +5767,7 @@ if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
   pwllib="-lpwl"
 fi
 
-    LDFLAGS="$saved_LDFLAGS"
+    LIBS="$saved_LIBS"
   fi
 
   ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
index 6b17b68dc0a58653f66cedf0de8af6bcfa76bc3c..58bbe448e53fc45d67ee954e63215cd7d1018bfa 100644 (file)
@@ -1677,10 +1677,10 @@ fi
 
 if test "x$with_ppl" != xno; then
   if test "x$pwllib" = x; then
-    saved_LDFLAGS="$LDFLAGS"
-    LDFLAGS="$LDFLAGS $ppllibs"
-    AC_CHECK_LIB(pwl,PWL_handle_timeout,[pwllib="-lpwl"])
-    LDFLAGS="$saved_LDFLAGS"
+    saved_LIBS="$LIBS"
+    LIBS="$LIBS $ppllibs -lstdc++ -lm"
+    AC_CHECK_LIB(pwl, PWL_handle_timeout, [pwllib="-lpwl"])
+    LIBS="$saved_LIBS"
   fi
 
   ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"