diff options
author | stwo <stwo> | 2014-09-16 15:48:48 (GMT) |
---|---|---|
committer | stwo <stwo> | 2014-09-16 15:48:48 (GMT) |
commit | e4d4eea6f762a3ed154078bff285a3345b69ecd1 (patch) | |
tree | 3ffd38a59ed518cf500173d9632a0ff701088552 | |
parent | 7e17c358eb7a149fbec81f4c2e5d1adefcc90bdd (diff) | |
download | tcl-e4d4eea6f762a3ed154078bff285a3345b69ecd1.zip tcl-e4d4eea6f762a3ed154078bff285a3345b69ecd1.tar.gz tcl-e4d4eea6f762a3ed154078bff285a3345b69ecd1.tar.bz2 |
Better pic flag for OpenBSD.
-rwxr-xr-x | unix/configure | 9 | ||||
-rw-r--r-- | unix/tcl.m4 | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure index a82c692..5291bf7 100755 --- a/unix/configure +++ b/unix/configure @@ -7676,7 +7676,14 @@ fi LDFLAGS="" ;; *) - SHLIB_CFLAGS="-fPIC" + case "$arch" in + alpha|sparc64) + SHLIB_CFLAGS="-fPIC" + ;; + *) + SHLIB_CFLAGS="-fpic" + ;; + esac SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 3ca65d8..277fe0b 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1475,7 +1475,14 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ LDFLAGS="" ;; *) - SHLIB_CFLAGS="-fPIC" + case "$arch" in + alpha|sparc64) + SHLIB_CFLAGS="-fPIC" + ;; + *) + SHLIB_CFLAGS="-fpic" + ;; + esac SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' SHLIB_SUFFIX=".so" DL_OBJS="tclLoadDl.o" |