From: wolf Date: Thu, 17 Feb 2000 14:57:40 +0000 (+0000) Subject: Remove -fPIC for AIX. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b07c6294f2d235c1b65de29cb2e208034ffbaa20;p=dealii-svn.git Remove -fPIC for AIX. git-svn-id: https://svn.dealii.org/trunk@2429 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/Make.global_options.in b/deal.II/common/Make.global_options.in index efd0700a7c..1ccf90f09c 100644 --- a/deal.II/common/Make.global_options.in +++ b/deal.II/common/Make.global_options.in @@ -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