From: wolf Date: Tue, 1 Nov 2005 01:39:30 +0000 (+0000) Subject: On x86_64, always link with -lpthread. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4478445c0212fc2573bead0eb5f284dcb0bdfbe5;p=dealii-svn.git On x86_64, always link with -lpthread. git-svn-id: https://svn.dealii.org/trunk@11676 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 7d6ff145e3..7b54fc441d 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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,