summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-09-17 12:25:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-09-17 12:25:47 (GMT)
commitde471b3a168fa5bf6630eea78aac7069bb4667b5 (patch)
treef97d3034aec9b0576b4c2e6af74b3031763b217b /unix/configure
parentfac8128473f66d73695363dedea6746ef6c4e8aa (diff)
downloadtk-de471b3a168fa5bf6630eea78aac7069bb4667b5.zip
tk-de471b3a168fa5bf6630eea78aac7069bb4667b5.tar.gz
tk-de471b3a168fa5bf6630eea78aac7069bb4667b5.tar.bz2
Better pic flag for OpenBSD, see: [http://core.tcl.tk/tcl/info/ae059042333583f6d4e2cea4aab3c2a3e9db9a6a|ae05904233]
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 d1c777d..65adb1e 100755
--- a/unix/configure
+++ b/unix/configure
@@ -5782,7 +5782,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"