diff options
author | hobbs <hobbs@noemail.net> | 2000-01-11 22:09:18 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-01-11 22:09:18 (GMT) |
commit | 4182ad31ce480de8c905153f41a75b2dd1fe2322 (patch) | |
tree | 6d094056c0cb17773c790dd3b5d4daa596cd5cb4 /unix/tcl.m4 | |
parent | 50beab5bec3aa02052c53a0083fa8a6bff716c5a (diff) | |
download | tcl-4182ad31ce480de8c905153f41a75b2dd1fe2322.zip tcl-4182ad31ce480de8c905153f41a75b2dd1fe2322.tar.gz tcl-4182ad31ce480de8c905153f41a75b2dd1fe2322.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]
FossilOrigin-Name: 341792a1e80465bc745c10180dd11adc3a65bcd0
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" |