summaryrefslogtreecommitdiffstats
path: root/Templates/cconfigure.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-04-30 20:58:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-04-30 20:58:07 (GMT)
commit06a6136b257ef26973c7c8778512ecb0ae707a6e (patch)
treee1db242652e2b779077f8e401fbb916c613aea88 /Templates/cconfigure.in
parent8a144d0c402cf9c76c69398425b61a3e55cf3cbf (diff)
downloadCMake-06a6136b257ef26973c7c8778512ecb0ae707a6e.zip
CMake-06a6136b257ef26973c7c8778512ecb0ae707a6e.tar.gz
CMake-06a6136b257ef26973c7c8778512ecb0ae707a6e.tar.bz2
ENH: remove -fPIC for AIX gnu
Diffstat (limited to 'Templates/cconfigure.in')
-rw-r--r--Templates/cconfigure.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Templates/cconfigure.in b/Templates/cconfigure.in
index 1743020..6edc469 100644
--- a/Templates/cconfigure.in
+++ b/Templates/cconfigure.in
@@ -465,8 +465,11 @@ export CMAKE_MODULE_SUFFIX
if test $ac_cv_prog_gcc = yes; then
CMAKE_SHLIB_CFLAGS="-fPIC"
fi
-# if running on cygwin remove -fPIC flag
+# if running on cygwin, AIX, or Darwin remove -fPIC flag
case $system in
+ AIX-*)
+ CMAKE_SHLIB_CFLAGS=""
+ ;;
CYGWIN_NT*)
CMAKE_SHLIB_CFLAGS=""
;;