]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/45693 (All Tru64 UNIX C++ EH tests fail)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 3 Dec 2010 12:46:12 +0000 (12:46 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 3 Dec 2010 12:46:12 +0000 (12:46 +0000)
Backport from mainline:
2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR target/45693
* configure.host (osf*): Set os_include_dir to os/generic.
Add -lpthread to OPT_LDFLAGS.

From-SVN: r167422

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

index efba32795e514f2c49bc392081ac73b8aad75efa..387b4e80ed2a619883234ca17f41d94599bcb226 100644 (file)
@@ -1,3 +1,12 @@
+2010-12-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       Backport from mainline:
+       2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR target/45693
+       * configure.host (osf*): Set os_include_dir to os/generic.
+       Add -lpthread to OPT_LDFLAGS.
+
 2010-11-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        PR libstdc++/45999
index 02292b016d0ebd504b218f61579b0200031e9701..4b4e2423c0ae2f7c48ae9b909777975baed3ac09 100644 (file)
@@ -264,6 +264,13 @@ case "${host_os}" in
   netbsd*)
     os_include_dir="os/bsd/netbsd"
     ;;
+  osf*)
+    os_include_dir="os/generic"
+    # libstdc++.so relies on emutls on Tru64 UNIX, which only works with the
+    # real functions implemented in libpthread.so, not with the dummies in
+    # libgcc, so always pass -lpthread.
+    OPT_LDFLAGS="${OPT_LDFLAGS} -lpthread"
+    ;;
   qnx6.[12]*)
     os_include_dir="os/qnx/qnx6.1"
     c_model=c