OSDN Git Service

2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
[pf3gnuchains/gcc-fork.git] / libgomp / configure.tgt
index f46210c..6ab9e4d 100644 (file)
@@ -11,7 +11,7 @@
 #  XLDFLAGS            Add extra link flags to use.
 
 # Optimize TLS usage by avoiding the overhead of dynamic allocation.
-if test $have_tls = yes ; then
+if test $gcc_cv_have_tls = yes ; then
   case "${target}" in
 
     *-*-linux*)
@@ -31,10 +31,18 @@ if test $enable_linux_futex = yes; then
        config_path="linux/alpha linux posix"
        ;;
 
+    arm*-*-linux*)
+       config_path="linux/arm linux posix"
+       ;;
+
     ia64*-*-linux*)
        config_path="linux/ia64 linux posix"
        ;;
 
+    mips*-*-linux*)
+       config_path="linux/mips linux posix"
+       ;;
+
     powerpc*-*-linux*)
        config_path="linux/powerpc linux posix"
        ;;
@@ -93,18 +101,27 @@ fi
 # Other system configury
 case "${target}" in
 
-  *-*-hpux11*)
-       # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
-       XLDFLAGS="${XLDFLAGS} -lrt"
+  *-*-hpux*)
+       case "${target}" in
+         *-*-hpux11*)
+            # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
+            XLDFLAGS="${XLDFLAGS} -lrt"
+            ;;
+       esac
+       case "${target}" in
+         hppa[12]*-*-hpux*)
+           # PA 32 HP-UX needs -frandom-seed for bootstrap compare.
+           XCFLAGS="${XCFLAGS} -frandom-seed=fixed-seed"
+           ;;
+       esac
        ;;
 
   *-*-mingw32*)
        config_path="mingw32 posix"
        ;;
 
-  *-*-solaris2.[56]*)
-       config_path="posix95 posix"
-       XLDFLAGS="${XLDFLAGS} -lposix4"
+  *-*-darwin*)
+       config_path="bsd posix"
        ;;
 
   *)