From 5b39b3ce9d5b3b5f18dccedb2939fb2ab40ac90a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 1 Nov 2005 01:39:30 +0000 Subject: [PATCH] On x86_64, always link with -lpthread. git-svn-id: https://svn.dealii.org/trunk@11676 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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, -- 2.39.5