diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-08 17:36:18 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-08 17:36:18 (GMT) |
commit | 65e3edea04fdd058719659e99a7a3da3dfb80b25 (patch) | |
tree | db1d3a1c33d40bb43c5333399163a76df7aee689 /Templates/cxxconfigure | |
parent | 7883b6c7dc38c73638947575c75aeb06acba9c90 (diff) | |
download | CMake-65e3edea04fdd058719659e99a7a3da3dfb80b25.zip CMake-65e3edea04fdd058719659e99a7a3da3dfb80b25.tar.gz CMake-65e3edea04fdd058719659e99a7a3da3dfb80b25.tar.bz2 |
ENH: use separate vars for creating c++ and c shared libraries and add a test for c libraries
Diffstat (limited to 'Templates/cxxconfigure')
-rwxr-xr-x | Templates/cxxconfigure | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Templates/cxxconfigure b/Templates/cxxconfigure index 06e707d..dd366fb 100755 --- a/Templates/cxxconfigure +++ b/Templates/cxxconfigure @@ -887,6 +887,31 @@ if test $ac_cv_prog_gxx = yes; then fi +CMAKE_CXX_LINK_SHARED=${CXX} +case $system in + HP-UX-*) + CMAKE_CXX_SHLIB_CFLAGS="+Z" + CMAKE_CXX_SHLIB_SUFFIX=".sl" + CMAKE_CXX_MODULE_SUFFIX=".sl" + CMAKE_CXX_SHLIB_BUILD_FLAGS='+Z -Wl,-E -b -L/usr/lib' + CMAKE_CXX_SHLIB_LINK_FLAGS='-Wl,+s' + CMAKE_CXX_MODULE_BUILD_FLAGS='+Z -Wl,-E -b -L/usr/lib' + CMAKE_CXX_MODULE_LINK_FLAGS='-Wl,+s' + CMAKE_CXX_SHLIB_RUNTIME_FLAG='-Wl,+b,' + CMAKE_CXX_SHLIB_RUNTIME_SEP=':' +esac +# CXX versions of shared flags + + + + + + + + + + + # generate output files. # create mkdir files just to make some of the directories @@ -1044,6 +1069,14 @@ s%@CMAKE_NO_ANSI_FOR_SCOPE@%$CMAKE_NO_ANSI_FOR_SCOPE%g s%@CMAKE_AR_TMP@%$CMAKE_AR_TMP%g s%@CMAKE_CXX_AR@%$CMAKE_CXX_AR%g s%@CMAKE_CXX_AR_ARGS@%$CMAKE_CXX_AR_ARGS%g +s%@CMAKE_CXX_LINK_SHARED@%$CMAKE_CXX_LINK_SHARED%g +s%@CMAKE_CXX_SHLIB_CFLAGS@%$CMAKE_CXX_SHLIB_CFLAGS%g +s%@CMAKE_CXX_SHLIB_BUILD_FLAGS@%$CMAKE_CXX_SHLIB_BUILD_FLAGS%g +s%@CMAKE_CXX_SHLIB_LINK_FLAGS@%$CMAKE_CXX_SHLIB_LINK_FLAGS%g +s%@CMAKE_CXX_MODULE_BUILD_FLAGS@%$CMAKE_CXX_MODULE_BUILD_FLAGS%g +s%@CMAKE_CXX_MODULE_LINK_FLAGS@%$CMAKE_CXX_MODULE_LINK_FLAGS%g +s%@CMAKE_CXX_SHLIB_RUNTIME_FLAG@%$CMAKE_CXX_SHLIB_RUNTIME_FLAG%g +s%@CMAKE_CXX_SHLIB_RUNTIME_SEP@%$CMAKE_CXX_SHLIB_RUNTIME_SEP%g s%@CMAKE_COMPILER_IS_GNUCXX@%$CMAKE_COMPILER_IS_GNUCXX%g CEOF |