#23 patch for FreeBSD 2.2.x

closed-out-of-date
nobody
5
2001-08-14
2001-07-30
Lloyd Lim
No

This patch corresponds to the patch submitted for Tcl bug #443170.

--- aclocal.m4.old Mon Jul 30 13:49:33 2001
+++ aclocal.m4 Mon Jul 30 13:50:59 2001
@@ -775,18 +775,20 @@
DL_OBJS="tclLoadDl.o"
DL_LIBS=""
LDFLAGS=""
- LD_SEARCH_FLAGS=""
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',
+ LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
+ ], [
AC_MSG_RESULT(no)
+ LD_SEARCH_FLAGS='-Wl,-L${LIB_RUNTIME_DIR}'
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
- )
+ ])
], [
SHLIB_CFLAGS=""
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"

Discussion

  • Lloyd Lim

    Lloyd Lim - 2001-07-31

    Logged In: YES
    user_id=99220

    A new, revised patch follows below. Please see Tcl bug
    #443170 for the explanation.

    --- aclocal.m4.old Tue Jul 31 09:28:07 2001
    +++ aclocal.m4 Tue Jul 31 09:30:46 2001
    @@ -764,7 +764,7 @@
    LDFLAGS="-Wl,-Bexport"
    LD_SEARCH_FLAGS=""
    ;;
    - NetBSD-*|FreeBSD-[[1-2]].*|OpenBSD-*)
    + NetBSD-*|OpenBSD-*)
    # Not available on all versions: check for
    include file.
    AC_CHECK_HEADER(dlfcn.h, [
    # NetBSD/SPARC needs -fPIC, -fpic will not
    do.
    @@ -798,6 +798,22 @@
    LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'

    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    ])
    +
    + # FreeBSD doesn't handle version numbers with
    dots.
    +
    +
    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    + TCL_LIB_VERSIONS_OK=nodots
    + ;;
    + FreeBSD-[[1-2]].*)
    + SHLIB_CFLAGS=""
    + SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} |
    `pwd`/tclsh -r"
    + SHLIB_LD_LIBS='${LIBS}'
    + SHLIB_SUFFIX=".a"
    + DL_OBJS="tclLoadAout.o"
    + DL_LIBS=""
    + LDFLAGS=""
    + LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    + SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'

    # FreeBSD doesn't handle version numbers with
    dots.

     
  • Lloyd Lim

    Lloyd Lim - 2001-08-14
    • status: open --> closed-out-of-date
     
  • Lloyd Lim

    Lloyd Lim - 2001-08-14

    Logged In: YES
    user_id=99220

    Not needed. I only submitted this patch so the Tcl and Tk
    configures would stay in synch. Mo pointed out that the
    current CVS version includes tcl.m4.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks