]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Enable shared libs on AIX 5.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Jan 2003 00:04:33 +0000 (00:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 Jan 2003 00:04:33 +0000 (00:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@6954 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 8c2c3d1a7a086407ea29b032a22fa6a8d312bc81..6131d13a8c7850178391daa741d5b842be6b7c99 100644 (file)
@@ -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(

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.