summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2011-03-21 13:03:33 +0000
committerRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2011-03-21 13:03:33 +0000
commiteaee9f7deaed4e90ae42ce608c6186bf00b66437 (patch)
treeba6a3ee2f5ba7715d2b53c62037c8858cde7eccb
parent2907adc9103c685bd41157ba06e1be51f37a2eab (diff)
downloadbinutils-redhat-eaee9f7deaed4e90ae42ce608c6186bf00b66437.tar.gz
PR bootstrap/48120:
* configure.ac (pwllib): Use LIBS instead of LDFLAGS. Add -lstdc++ -lm to LIBS. * configure: Regenerate.
-rw-r--r--ChangeLog7
-rwxr-xr-xconfigure6
-rw-r--r--configure.ac8
3 files changed, 14 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index ee4c378bf8..bf8f64995c 100644
--- 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
diff --git a/configure b/configure
index 5e97d0f6d6..501caf060c 100755
--- 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"
diff --git a/configure.ac b/configure.ac
index 233ce0a768..e036b5f505 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"