diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-11 15:54:14 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-11 15:54:14 (GMT) |
commit | 54995b06e3ef033dfd0a7c453db438fe31b71b2a (patch) | |
tree | 727677070d98e2df153fc4960f4f4bf58e083daa /Templates | |
parent | 56252e1100c1c587a8273521a37b128c1c53e472 (diff) | |
download | CMake-54995b06e3ef033dfd0a7c453db438fe31b71b2a.zip CMake-54995b06e3ef033dfd0a7c453db438fe31b71b2a.tar.gz CMake-54995b06e3ef033dfd0a7c453db438fe31b71b2a.tar.bz2 |
ENH: add support for shared libraries with gcc on AIX
Diffstat (limited to 'Templates')
-rw-r--r-- | Templates/configure.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Templates/configure.in b/Templates/configure.in index 2b476c0..e3c4b4a 100644 --- a/Templates/configure.in +++ b/Templates/configure.in @@ -149,7 +149,15 @@ case $system in CMAKE_SHLIB_LINK_FLAGS="" CMAKE_MODULE_LINK_FLAGS="" CMAKE_SHLIB_RUNTIME_FLAG="" - CMAKE_SHLIB_RUNTIME_SEP="" + CMAKE_SHLIB_RUNTIME_SEP="" + if test $ac_cv_prog_gxx = yes; then + CMAKE_SHLIB_BUILD_FLAGS='-shared -Wl,-G' + CMAKE_MODULE_BUILD_FLAGS='-shared -Wl,-G' + CMAKE_SHLIB_LINK_FLAGS='-Wl,-brtl' + CMAKE_MODULE_LINK_FLAGS='-Wl,-brtl' + CMAKE_MODULE_SUFFIX=".so" + CMAKE_SHLIB_SUFFIX=".so" + fi ;; Darwin-*) CMAKE_SHLIB_CFLAGS="" |