diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-06-08 11:49:55 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-06-08 11:49:55 (GMT) |
commit | f0316438a9a7171b8be5b2be35bd8e777fbda609 (patch) | |
tree | fb696ef4b7f44a2c5d76384474970feea9b4654f /unix | |
parent | a5ee3631c378f7788e6bc34ff322ea6592419abf (diff) | |
download | tcl-f0316438a9a7171b8be5b2be35bd8e777fbda609.zip tcl-f0316438a9a7171b8be5b2be35bd8e777fbda609.tar.gz tcl-f0316438a9a7171b8be5b2be35bd8e777fbda609.tar.bz2 |
Use -fPIC by default on DragonFly/FreeBSD, but not on OSF1/HP-UX. Backported (with typo correct) from 8.7
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tcl.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 8139569..9b0363c 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -519,6 +519,7 @@ AC_DEFUN([SC_ENABLE_SHARED], [ SHARED_BUILD=0 AC_DEFINE(STATIC_BUILD, 1, [Is this a static build?]) fi + AC_SUBST(SHARED_BUILD) ]) #------------------------------------------------------------------------ @@ -1492,7 +1493,6 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ ;; DragonFly-*|FreeBSD-*) # This configuration from FreeBSD Ports. - SHLIB_CFLAGS="-fPIC" SHLIB_LD="${CC} -shared" SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,-soname,\$[@]" SHLIB_SUFFIX=".so" @@ -1984,9 +1984,11 @@ dnl # preprocessing tests use only CPPFLAGS. AIX-*) ;; BSD/OS*) ;; CYGWIN_*|MINGW32_*|MSYS_*) ;; - IRIX*) ;; - NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;; + HP-UX*) ;; Darwin-*) ;; + IRIX*) ;; + NetBSD-*|OpenBSD-*) ;; + OSF1-*) ;; SCO_SV-3.2*) ;; *) SHLIB_CFLAGS="-fPIC" ;; esac]) |