aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2012-01-17 15:41:10 +0000
committerRainer Orth <ro@gcc.gnu.org>2012-01-17 15:41:10 +0000
commit99eb180f6619a88a87bcf7afa4845d1d5aaec597 (patch)
tree7571d380c5ccd3a7b9eb6d4a1bbd850ad8a2ca44
parente831c1e8a6dc9f439e7269a741b6891f441880c4 (diff)
downloadgcc-99eb180f6619a88a87bcf7afa4845d1d5aaec597.zip
gcc-99eb180f6619a88a87bcf7afa4845d1d5aaec597.tar.gz
gcc-99eb180f6619a88a87bcf7afa4845d1d5aaec597.tar.bz2
Link libstdc++ with -lpthread on IRIX 6 (PR target/47852)
PR target/47852 * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS. From-SVN: r183251
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/configure.host4
2 files changed, 9 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 490f7d5..3b16284 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR target/47852
+ * configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS.
+
2012-01-14 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/bits/stl_iterator.h (reverse_iterator): Doxygen comments.
diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
index 4da4508..715d549 100644
--- a/libstdc++-v3/configure.host
+++ b/libstdc++-v3/configure.host
@@ -258,6 +258,10 @@ case "${host_os}" in
os_include_dir="os/irix/irix6.5"
atomicity_dir=os/irix
atomic_word_dir=os/irix
+ # libstdc++.so relies on emutls on IRIX, which only works with the
+ # real functions implemented in libpthread.so, not with the stubs in
+ # libc, so always pass -lpthread.
+ OPT_LDFLAGS="${OPT_LDFLAGS} -lpthread"
;;
mingw32*)
case "$host" in