From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14254 invoked by alias); 15 Jul 2002 06:55:36 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 14247 invoked from network); 15 Jul 2002 06:55:35 -0000 Received: from unknown (HELO mta6.snfc21.pbi.net) (206.13.28.240) by sources.redhat.com with SMTP; 15 Jul 2002 06:55:35 -0000 Received: from modrick ([66.120.11.181]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with SMTP id <0GZA00BSN38NVO@mta6.snfc21.pbi.net> for insight@sources.redhat.com; Sun, 14 Jul 2002 23:55:35 -0700 (PDT) Date: Sun, 14 Jul 2002 23:55:00 -0000 From: Mo DeJong Subject: Re: Tk lib build doesn't look in the Tcl build directory To: Insight Message-id: <20020714235520.74ec887b.supermo@bayarea.net> Organization: House of Mirth MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-SW-Source: 2002-q3/txt/msg00016.txt.bz2 >> Am I the only one seeing this? It would seem that the Tk build requires >> all the Tcl stuff to have been /installed/, not just built, before it itself >> can build. Perhaps the majority (totality?) of the developers already have >> a Tcl installation somewhere in the default paths searched by the linker? >What does "cat config.status" give? I just built for linux with and >without --enable-shared, and it worked just fine. >Is it pulling in the right tclConfig.sh (the one in the build tree). Tcl >should definately not need to be installed to build tk in our tree. The problem here only shows up when --enable-shared is passed and that was never tested as part of the 8.3 upgrade because we always build static under Unix. At any rate, here is the most simple little fix for the problem. 2002-07-14 Mo DeJong * unix/configure: Regen. * unix/configure.in: Use TCL_BUILD_STUB_LIB_SPEC instead of TCL_STUB_LIB_SPEC when defining MAKE_LIB since we want to link to the libtclstub in the build directory. Index: unix/configure.in =================================================================== RCS file: /cvs/src/src/tk/unix/configure.in,v retrieving revision 1.6 diff -u -r1.6 configure.in --- unix/configure.in 9 Feb 2002 18:54:17 -0000 1.6 +++ unix/configure.in 15 Jul 2002 06:44:58 -0000 @@ -434,7 +434,7 @@ if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then TK_SHLIB_CFLAGS="${SHLIB_CFLAGS}" TCL_TOOL_SHARED_LIB_LONGNAME(TK_LIB_FILE, tk, ${TK_SHARED_LIB_SUFFIX}) - MAKE_LIB="\${SHLIB_LD} -o \${TK_LIB_FILE} \${OBJS} \$(TK_LD_SEARCH_FLAGS) ${TCL_STUB_LIB_SPEC} \${LIBS}" + MAKE_LIB="\${SHLIB_LD} -o \${TK_LIB_FILE} \${OBJS} \$(TK_LD_SEARCH_FLAGS) ${TCL_BUILD_STUB_LIB_SPEC} \${LIBS}" RANLIB=":" # TCL_STUB_FLAGS="-DUSE_TCL_STUBS"