From b07c6294f2d235c1b65de29cb2e208034ffbaa20 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 17 Feb 2000 14:57:40 +0000 Subject: [PATCH] Remove -fPIC for AIX. git-svn-id: https://svn.dealii.org/trunk@2429 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/common/Make.global_options.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.39.5