]> https://gitweb.dealii.org/ - dealii.git/commitdiff
On x86_64, always link with -lpthread.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 1 Nov 2005 01:39:30 +0000 (01:39 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 1 Nov 2005 01:39:30 +0000 (01:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@11676 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 7d6ff145e3bce39fa434092f46537a467bab924c..7b54fc441dfe559e01acb9e4ea25c1067114c486 100644 (file)
@@ -365,7 +365,7 @@ 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. Likewise
-    dnl DEC OSF.
+    dnl DEC OSF and linux on x86_64.
     case "$target" in
       *aix* )
        CXXFLAGSPIC=
@@ -379,6 +379,12 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
         LDFLAGS="$LDFLAGS -lpthread"
        ;;
 
+      *x86_64*)
+       CXXFLAGSPIC="-fPIC"
+       LDFLAGSPIC="-fPIC"
+       LDFLAGS="$LDFLAGS -lpthread"
+       ;;
+
       *cygwin* )
         dnl On Cygwin, when using shared libraries, there might occur 
         dnl difficulties when linking libraries for several dimensions,

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.