summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorstwo <stwo>2014-09-16 15:52:44 (GMT)
committerstwo <stwo>2014-09-16 15:52:44 (GMT)
commit2eb36b08a9d7f97e811ba6b7aeaddaa7fbfa812d (patch)
tree26f65c8515018cef08162c3debe999b991327bf3 /unix/tcl.m4
parent186cc4a17e82ce9bd90edccc45ab943c63b40c30 (diff)
downloadtcl-2eb36b08a9d7f97e811ba6b7aeaddaa7fbfa812d.zip
tcl-2eb36b08a9d7f97e811ba6b7aeaddaa7fbfa812d.tar.gz
tcl-2eb36b08a9d7f97e811ba6b7aeaddaa7fbfa812d.tar.bz2
Better pic flag for OpenBSD.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 437ce3d..c4e4675 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1499,7 +1499,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"