summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorstwo@users.sourceforge.net <stwo>2014-09-16 15:48:48 (GMT)
committerstwo@users.sourceforge.net <stwo>2014-09-16 15:48:48 (GMT)
commit1eb412e30230841dda1d9725af0d5e8f13bfd13b (patch)
tree3ffd38a59ed518cf500173d9632a0ff701088552 /unix/configure
parent965ab2357ea576564bb89758eca48ba60e7e8046 (diff)
downloadtcl-1eb412e30230841dda1d9725af0d5e8f13bfd13b.zip
tcl-1eb412e30230841dda1d9725af0d5e8f13bfd13b.tar.gz
tcl-1eb412e30230841dda1d9725af0d5e8f13bfd13b.tar.bz2
Better pic flag for OpenBSD.
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure9
1 files changed, 8 insertions, 1 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"