diff options
Diffstat (limited to 'Templates/configure.in')
-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="" |