diff options
Diffstat (limited to 'Templates/cxxconfigure.in')
-rw-r--r-- | Templates/cxxconfigure.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Templates/cxxconfigure.in b/Templates/cxxconfigure.in index b591237..b451468 100644 --- a/Templates/cxxconfigure.in +++ b/Templates/cxxconfigure.in @@ -180,6 +180,31 @@ if test $ac_cv_prog_gxx = yes; then CMAKE_COMPILER_IS_GNUCXX=1 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 +AC_SUBST(CMAKE_CXX_LINK_SHARED) +AC_SUBST(CMAKE_CXX_SHLIB_CFLAGS) +AC_SUBST(CMAKE_CXX_SHLIB_BUILD_FLAGS) +AC_SUBST(CMAKE_CXX_SHLIB_LINK_FLAGS) +AC_SUBST(CMAKE_CXX_MODULE_BUILD_FLAGS) +AC_SUBST(CMAKE_CXX_MODULE_LINK_FLAGS) +AC_SUBST(CMAKE_CXX_SHLIB_RUNTIME_FLAG) +AC_SUBST(CMAKE_CXX_SHLIB_RUNTIME_SEP) + + AC_SUBST(CMAKE_COMPILER_IS_GNUCXX) # generate output files. # create mkdir files just to make some of the directories |