summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2014-09-17 12:25:47 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2014-09-17 12:25:47 (GMT)
commit2d3ccc5655f6e91df0e81423995c09435aaba797 (patch)
treeef042549fe9e93715feb192f886745fc0404d776 /unix
parentc380fff586c96003cfc71a54a441925941a00656 (diff)
downloadtk-2d3ccc5655f6e91df0e81423995c09435aaba797.zip
tk-2d3ccc5655f6e91df0e81423995c09435aaba797.tar.gz
tk-2d3ccc5655f6e91df0e81423995c09435aaba797.tar.bz2
Better pic flag for OpenBSD, see: [http://core.tcl.tk/tcl/info/ae059042333583f6d4e2cea4aab3c2a3e9db9a6a|ae05904233]
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure9
-rw-r--r--unix/tcl.m49
2 files changed, 16 insertions, 2 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"
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 5a27062..b9f4896 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"