From 82b73cd23ab4e1eb52fe5e8e1a1f44cffed8bcd1 Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 24 Jan 2003 00:04:33 +0000 Subject: [PATCH] Enable shared libs on AIX 5. git-svn-id: https://svn.dealii.org/trunk@6954 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 8c2c3d1a7a..6131d13a8c 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -219,8 +219,20 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl if test "$GXX" = yes ; then CXXFLAGSO="$CXXFLAGS -O2 -Wuninitialized -felide-constructors -ftemplate-depth-32" CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Winline -Woverloaded-virtual -Wstrict-prototypes -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-32" - CXXFLAGSPIC="-fPIC" - LDFLAGSPIC="-fPIC" + + dnl Set PIC flags. On some systems, -fpic/PIC is implied, so don't set + dnl anything to avoid a warning + case "$target" in + *aix* ) + CXXFLAGSPIC= + LDFLAGSPIC= + ;; + + *) + CXXFLAGSPIC="-fPIC" + LDFLAGSPIC="-fPIC" + ;; + esac dnl set some flags that are specific to some versions of the dnl compiler: @@ -2612,7 +2624,7 @@ dnl dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_ERROR_CODES_DEFINITION, dnl [ - AC_MSG_CHECKING(for defintions of error codes in errno.h) + AC_MSG_CHECKING(for definitions of error codes in errno.h) AC_LANG(C++) CXXFLAGS="$CXXFLAGSG" AC_TRY_COMPILE( -- 2.39.5