From 0ef1f3bdfa72864ab9f163817cd1751ee751d9a1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 5 Mar 2004 02:39:44 +0000 Subject: [PATCH] Always use -lpthread on OSF. git-svn-id: https://svn.dealii.org/trunk@8664 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 9 ++++++++- deal.II/configure | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index d2c8e9837d..6af2bd792c 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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" diff --git a/deal.II/configure b/deal.II/configure index b0553f4d16..76b98444d1 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -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" ;; *) -- 2.39.5