From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16452 invoked by alias); 10 Mar 2004 17:30:16 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16370 invoked from network); 10 Mar 2004 17:30:11 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sources.redhat.com with SMTP; 10 Mar 2004 17:30:11 -0000 Received: (qmail 15448 invoked by uid 10); 10 Mar 2004 17:30:08 -0000 Received: (qmail 28482 invoked by uid 500); 10 Mar 2004 17:30:00 -0000 From: Ian Lance Taylor To: Andreas Schwab Cc: Manoj Iyer , Daniel Jacobowitz , Andrew Cagney , gdb@sources.redhat.com Subject: Re: tcl cannot build 64bit. References: <404E3539.8010005@gnu.org> <404E44B8.8050605@gnu.org> <404E70B2.4010607@gnu.org> <20040310160535.GA489@nevyn.them.org> Date: Wed, 10 Mar 2004 17:30:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-03/txt/msg00098.txt.bz2 Andreas Schwab writes: > > I think I emailed the fix to the problem wrt to building tcl 64bit. All > > it requires is a one line fix in Makefile.in. > > > > src/tcl/unix/Makefile.in:479 > > > > tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE} > > ${CC} ${CFLAGS} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ > > ${LIBS} ${CC_SEARCH_FLAGS} -o tclsh > > > > > > It is missing the ${CFLAGS} in the cc line. > > It shouldn't be needed, since it's a link command, not a compile command. > If you need -m64 for linking you must add it to LDFLAGS. Or just use > CC="$CC -m64" since it's actually a different compiler after all. The GNU standards require that CFLAGS be used in every command which uses CC, including ones which simply link. Of course, Tcl is not a GNU program. Ian