From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20029 invoked by alias); 29 Apr 2004 16:03:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20022 invoked from network); 29 Apr 2004 16:03:43 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 29 Apr 2004 16:03:43 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i3TG3gKI010955 for ; Thu, 29 Apr 2004 12:03:42 -0400 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i3TG3fv00720; Thu, 29 Apr 2004 12:03:42 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id A0D4E2B9D; Thu, 29 Apr 2004 12:03:37 -0400 (EDT) Message-ID: <40912759.1080706@gnu.org> Date: Thu, 29 Apr 2004 16:03:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Manoj Iyer , Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] use CFLAGS when compiling (PPC64) References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00676.txt.bz2 > This patch add CFLAGS to the compile line for building gdbserver, > gdbreplay and tclsh. Compiling GDB as 64bit binary on PPC64 breaks without > this. Daniel, did this get rejected? I recall it being pointed out that the correct way to build such a beastie was with: CC='gcc -m64' ./configure && gmake and I know that already works. Andrew > diff -Naurd old/src/gdb/gdbserver/Makefile.in new/src/gdb/gdbserver/Makefile.in > --- old/src/gdb/gdbserver/Makefile.in 2004-03-04 16:59:10.000000000 -0500 > +++ new/src/gdb/gdbserver/Makefile.in 2004-04-07 15:04:06.398979032 -0500 > @@ -171,12 +171,12 @@ > > gdbserver: $(OBS) ${ADD_DEPS} ${CDEPS} > rm -f gdbserver > - ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdbserver $(OBS) \ > + ${CC-LD} $(GLOBAL_CFLAGS) $(CFLAGS) $(LDFLAGS) -o gdbserver $(OBS) \ > $(GDBSERVER_LIBS) $(XM_CLIBS) > > gdbreplay: gdbreplay.o > rm -f gdbreplay > - ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdbreplay gdbreplay.o \ > + ${CC-LD} $(GLOBAL_CFLAGS) $(CFLAGS) $(LDFLAGS) -o gdbreplay gdbreplay.o \ > $(XM_CLIBS) > > # Put the proper machine-specific files first, so M-. on a machine > diff -Naurd old/src/tcl/unix/Makefile.in new/src/tcl/unix/Makefile.in > --- old/src/tcl/unix/Makefile.in 2003-01-21 14:40:18.000000000 -0500 > +++ new/src/tcl/unix/Makefile.in 2004-04-07 15:05:09.046041896 -0500 > @@ -477,7 +477,7 @@ > > > tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE} > - ${CC} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \ > + ${CC} ${CFLAGS} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \ > ${CC_SEARCH_FLAGS} -o tclsh > > # Resetting the LIB_RUNTIME_DIR below is required so that