summaryrefslogtreecommitdiffstats
path: root/Templates/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'Templates/configure.in')
-rw-r--r--Templates/configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Templates/configure.in b/Templates/configure.in
index 1dbda44..2b476c0 100644
--- a/Templates/configure.in
+++ b/Templates/configure.in
@@ -165,7 +165,7 @@ case $system in
CMAKE_SHLIB_RUNTIME_SEP=":"
;;
HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
- CMAKE_SHLIB_CFLAGS="+z"
+ CMAKE_SHLIB_CFLAGS="+Z"
CMAKE_SHLIB_LD_LIBS=""
CMAKE_SHLIB_SUFFIX=".sl"
CMAKE_MODULE_SUFFIX=".sl"
@@ -177,6 +177,7 @@ case $system in
CMAKE_SHLIB_RUNTIME_FLAG='-Wl,+b,'
CMAKE_SHLIB_RUNTIME_SEP=':'
if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
+ CMAKE_SHLIB_CFLAGS="-fPIC"
CMAKE_SHLIB_BUILD_FLAGS='-shared -Wl,-E -Wl,-b'
CMAKE_SHLIB_LINK_FLAGS='-Wl,+s'
CMAKE_MODULE_BUILD_FLAGS='-shared -Wl,-E -Wl,-b'