diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-09-17 13:03:47 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-09-17 13:03:47 (GMT) |
commit | 5ed4471dbbcef38ecf95bb9ba241dfaf5c388059 (patch) | |
tree | ff76a8f2593992a649a8bcc77cdf3836f21cf7b7 /unix/tcl.m4 | |
parent | f88c6d3e6adbd18423a48e7414d13c8e411a7782 (diff) | |
parent | de471b3a168fa5bf6630eea78aac7069bb4667b5 (diff) | |
download | tk-5ed4471dbbcef38ecf95bb9ba241dfaf5c388059.zip tk-5ed4471dbbcef38ecf95bb9ba241dfaf5c388059.tar.gz tk-5ed4471dbbcef38ecf95bb9ba241dfaf5c388059.tar.bz2 |
Better pic flag for OpenBSD, see: [http://core.tcl.tk/tcl/info/fc3dfd9bc8e16b7ee0b49850df9de93eb4aa4ea6|fc3dfd9bc8]
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 19c1fc5..30b3bc1 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" |