summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorstwo <stwo>2014-09-16 15:48:48 (GMT)
committerstwo <stwo>2014-09-16 15:48:48 (GMT)
commit85f3786d9c41c283a79da67ee6e54bd05f7a8613 (patch)
tree3ffd38a59ed518cf500173d9632a0ff701088552 /unix/tcl.m4
parentd75135cca196056a72935f75055f30b95e2d81e3 (diff)
downloadtcl-85f3786d9c41c283a79da67ee6e54bd05f7a8613.zip
tcl-85f3786d9c41c283a79da67ee6e54bd05f7a8613.tar.gz
tcl-85f3786d9c41c283a79da67ee6e54bd05f7a8613.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 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"