use -shared for sunos build

This commit is contained in:
Bill Hoffman 2002-01-07 13:47:12 -05:00
parent 2fa6a0eb44
commit bcbc8443b5
2 changed files with 4 additions and 4 deletions

4
Templates/configure vendored
View File

@ -2565,9 +2565,9 @@ fi
CMAKE_SHLIB_RUNTIME_FLAG="-R " CMAKE_SHLIB_RUNTIME_FLAG="-R "
CMAKE_SHLIB_RUNTIME_SEP=":" CMAKE_SHLIB_RUNTIME_SEP=":"
if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
CMAKE_SHLIB_BUILD_FLAGS='-Wl,-G' CMAKE_SHLIB_BUILD_FLAGS='-shared -nostdlib'
CMAKE_SHLIB_LINK_FLAGS='' CMAKE_SHLIB_LINK_FLAGS=''
CMAKE_MODULE_BUILD_FLAGS='-Wl,-G' CMAKE_MODULE_BUILD_FLAGS='-shared -nostdlib'
CMAKE_MODULE_LINK_FLAGS='' CMAKE_MODULE_LINK_FLAGS=''
CMAKE_SHLIB_RUNTIME_FLAG="-Wl,-R," CMAKE_SHLIB_RUNTIME_FLAG="-Wl,-R,"
CMAKE_SHLIB_RUNTIME_SEP=":" CMAKE_SHLIB_RUNTIME_SEP=":"

View File

@ -379,9 +379,9 @@ case $system in
CMAKE_SHLIB_RUNTIME_FLAG="-R " CMAKE_SHLIB_RUNTIME_FLAG="-R "
CMAKE_SHLIB_RUNTIME_SEP=":" CMAKE_SHLIB_RUNTIME_SEP=":"
if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
CMAKE_SHLIB_BUILD_FLAGS='-Wl,-G' CMAKE_SHLIB_BUILD_FLAGS='-shared -nostdlib'
CMAKE_SHLIB_LINK_FLAGS='' CMAKE_SHLIB_LINK_FLAGS=''
CMAKE_MODULE_BUILD_FLAGS='-Wl,-G' CMAKE_MODULE_BUILD_FLAGS='-shared -nostdlib'
CMAKE_MODULE_LINK_FLAGS='' CMAKE_MODULE_LINK_FLAGS=''
CMAKE_SHLIB_RUNTIME_FLAG="-Wl,-R," CMAKE_SHLIB_RUNTIME_FLAG="-Wl,-R,"
CMAKE_SHLIB_RUNTIME_SEP=":" CMAKE_SHLIB_RUNTIME_SEP=":"