diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-09-17 12:25:47 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-09-17 12:25:47 (GMT) |
commit | 13b37ccabff94cc61137aa6d5a4f7171b3dd5ef2 (patch) | |
tree | f97d3034aec9b0576b4c2e6af74b3031763b217b /unix/tcl.m4 | |
parent | a3031150d383edde242fa4f66e31443f9b93e8be (diff) | |
download | tk-13b37ccabff94cc61137aa6d5a4f7171b3dd5ef2.zip tk-13b37ccabff94cc61137aa6d5a4f7171b3dd5ef2.tar.gz tk-13b37ccabff94cc61137aa6d5a4f7171b3dd5ef2.tar.bz2 |
Better pic flag for OpenBSD, see: [http://core.tcl.tk/tcl/info/ae059042333583f6d4e2cea4aab3c2a3e9db9a6a|ae05904233]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
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" |