summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2014-09-17 13:03:47 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2014-09-17 13:03:47 (GMT)
commit10ce4fc659038ff965c6de6ecfcf6882da49e2f7 (patch)
treeff76a8f2593992a649a8bcc77cdf3836f21cf7b7 /unix
parent90429424914df51fa75a2aa1dc3dee86ea0c7454 (diff)
parent7b5dd2bad35712ffee8c60727079a531710208e2 (diff)
downloadtk-10ce4fc659038ff965c6de6ecfcf6882da49e2f7.zip
tk-10ce4fc659038ff965c6de6ecfcf6882da49e2f7.tar.gz
tk-10ce4fc659038ff965c6de6ecfcf6882da49e2f7.tar.bz2
Better pic flag for OpenBSD, see: [http://core.tcl.tk/tcl/info/fc3dfd9bc8e16b7ee0b49850df9de93eb4aa4ea6|fc3dfd9bc8]
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 2650a0c..741ab74 100755
--- a/unix/configure
+++ b/unix/configure
@@ -5518,7 +5518,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 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"