]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove -fPIC for AIX.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Feb 2000 14:57:40 +0000 (14:57 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Feb 2000 14:57:40 +0000 (14:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@2429 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/Make.global_options.in

index efd0700a7c5d7388869864cd94d99c6213d82df9..1ccf90f09c039f80b347395506c5f8fe2469fbf1 100644 (file)
@@ -150,7 +150,12 @@ ifneq ($(with-multithreading),no)
 endif
 
 
+# when using shared libraries, we have to compile with -fPIC (note
+# that -fpic is not enough). On AIX, however, -fPIC is the default
+# and the compiler warns if we pass that flag to it.
 ifeq ($(enable-shared),yes)
-  CXXFLAGS.g += -fPIC
-  CXXFLAGS.o += -fPIC
+  ifneq ($(OS),AIX)
+    CXXFLAGS.g += -fPIC
+    CXXFLAGS.o += -fPIC
+  endif
 endif

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.