OSDN Git Service

PR target/45693
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2010 16:16:22 +0000 (16:16 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2010 16:16:22 +0000 (16:16 +0000)
* configure.host (osf*): Set os_include_dir to os/generic.
Add -lpthread to OPT_LDFLAGS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166199 138bc75d-0d04-0410-961f-82ee72b054a4

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

index aa98bfe..e2cfdaf 100644 (file)
@@ -1,3 +1,9 @@
+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-02  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/std/bitset (_Base_bitset<>_Base_bitset(unsigned long long)):
index 30b28dc..73cf216 100644 (file)
@@ -261,6 +261,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