]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Always use -lpthread on OSF.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 5 Mar 2004 02:39:44 +0000 (02:39 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 5 Mar 2004 02:39:44 +0000 (02:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@8664 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index d2c8e9837d98aeee613fb4e88ef3264227ad3629..6af2bd792cee4d8152d9a18bec52d59abe6f73f1 100644 (file)
@@ -272,7 +272,8 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
 
     dnl Set PIC flags. On some systems, -fpic/PIC is implied, so don't set
     dnl anything to avoid a warning. on AIX make sure we always pass -lpthread
-    dnl because this seems to be somehow required to make things work
+    dnl because this seems to be somehow required to make things work. Likewise
+    dnl DEC OSF.
     case "$target" in
       *aix* )
        CXXFLAGSPIC=
@@ -280,6 +281,12 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
         LDFLAGS="$LDFLAGS -lpthread"
        ;;
 
+      *dec-osf* )
+       CXXFLAGSPIC="-fPIC"
+       LDFLAGSPIC="-fPIC"
+        LDFLAGS="$LDFLAGS -lpthread"
+       ;;
+
       *)
        CXXFLAGSPIC="-fPIC"
        LDFLAGSPIC="-fPIC"
index b0553f4d162e7cbe2f63613f43d2d770079730e7..76b98444d1d30af662e7ae782457f13666869998 100755 (executable)
@@ -2899,10 +2899,17 @@ echo "$as_me: error: Unrecognized compiler -- sorry" >&2;}
 
         CXXFLAGSG="$CXXFLAGSG -Wno-long-long"
 
-            case "$target" in
+                    case "$target" in
       *aix* )
        CXXFLAGSPIC=
        LDFLAGSPIC=
+        LDFLAGS="$LDFLAGS -lpthread"
+       ;;
+
+      *dec-osf* )
+       CXXFLAGSPIC="-fPIC"
+       LDFLAGSPIC="-fPIC"
+        LDFLAGS="$LDFLAGS -lpthread"
        ;;
 
       *)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.