diff options
author | hobbs <hobbs> | 2000-01-11 22:09:18 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-01-11 22:09:18 (GMT) |
commit | 80aca675e000cc95aa5910d75144bada69786139 (patch) | |
tree | 6d094056c0cb17773c790dd3b5d4daa596cd5cb4 /unix/tcl.m4 | |
parent | 6cf44cfd1a6b849cbfabaf7d6b2279499e3b068e (diff) | |
download | tcl-80aca675e000cc95aa5910d75144bada69786139.zip tcl-80aca675e000cc95aa5910d75144bada69786139.tar.gz tcl-80aca675e000cc95aa5910d75144bada69786139.tar.bz2 |
* unix/tclUnixFile.c: fixed signature style on functions
* unix/Makefile.in: made sure tcl.m4 would be installed with dist
* unix/tcl.m4: added ELF support for NetBSD [Bug: 3959]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 0b8fdda..4c59293 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -756,7 +756,8 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ NetBSD-*|FreeBSD-[[1-2]].*|OpenBSD-*) # Not available on all versions: check for include file. AC_CHECK_HEADER(dlfcn.h, [ - SHLIB_CFLAGS="-fpic" + # NetBSD/SPARC needs -fPIC, -fpic will not do. + SHLIB_CFLAGS="-fPIC" SHLIB_LD="ld -Bshareable -x" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" @@ -765,6 +766,18 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ LDFLAGS="" LD_SEARCH_FLAGS="" SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' + LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' + AC_MSG_CHECKING(for ELF) + AC_EGREP_CPP(yes, [ +#ifdef __ELF__ + yes +#endif + ], + AC_MSG_RESULT(yes) + SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so', + AC_MSG_RESULT(no) + SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' + ) ], [ SHLIB_CFLAGS="" SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |