Link libstdc++ with -lpthread on IRIX 6 (PR target/47852)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 17 Jan 2012 15:41:10 +0000 (15:41 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 17 Jan 2012 15:41:10 +0000 (15:41 +0000)
PR target/47852
* configure.host (irix6.5*): Add -lpthread to OPT_LDFLAGS.

From-SVN: r183251

libstdc++-v3/ChangeLog
libstdc++-v3/configure.host

index 490f7d5f5740e8927938ad7934e48913a5820565..3b16284da60b91906fff18a36b204f764ad36857 100644 (file)
@@ -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.
index 4da4508fa4ff19c07c3529a89567f2e1251f299f..715d549546f745dd5c984dbff6986523e6efa13d 100644 (file)
@@ -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