From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1829 invoked by alias); 13 Aug 2002 18:24:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 1822 invoked from network); 13 Aug 2002 18:24:47 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 13 Aug 2002 18:24:47 -0000 Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17egLW-0006n7-00 for ; Tue, 13 Aug 2002 14:24:46 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17egLV-0008KL-00 for gcc-help@gnu.org; Tue, 13 Aug 2002 14:24:46 -0400 Received: from multivac.student.cwru.edu ([129.22.96.25] helo=multivac.cwru.edu) by monty-python.gnu.org with smtp (Exim 4.10) id 17egLV-0008Ju-00 for gcc-help@gnu.org; Tue, 13 Aug 2002 14:24:45 -0400 Received: (qmail 20578 invoked by uid 500); 13 Aug 2002 18:27:24 -0000 To: gcc-help@gnu.org Subject: Re: a more universal BOOT_CFLAGS/BOOT_LDFLAGS References: In-Reply-To: (prj@po.cwru.edu's message of "Wed, 07 Aug 2002 17:35:47 -0400") From: prj@po.cwru.edu (Paul Jarc) Organization: What did you have in mind? A short, blunt, human pyramid? Mail-Copies-To: nobody Date: Tue, 13 Aug 2002 11:24:00 -0000 Message-ID: User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,SUPERLONG_LINE version=2.31 X-Spam-Level: X-SW-Source: 2002-08/txt/msg00117.txt.bz2 I wrote: > While building gcc, I want to pass a certain set of flags to every > compilation that uses a gcc we've just built. (More accurately, I > want to pass these flags to absolutely every compilation whatsoever, > but for the cases where the installed gcc is used, I'm using a wrapper > script that's ahead of the real gcc in $PATH.) The flags I want to pass are -I, -L, -Wl,-R, and -Wl,--dynamic-linker, so as to link to a glibc installed in a nonstandard directory. I've just learned about C_INCLUDE_PATH, LIBRARY_PATH, etc., so I've set those, and I've included the -Wl, options in CFLAGS, LDFLAGS, XCFLAGS, TCFLAGS, STAGE1_CFLAGS, and BOOT_CFLAGS. Most things work, but unless I use --enable-languages to exclude java, I get this error: /home/prj/src/sptools/gcc-3.1-2-build/gcc/gcj -B/home/prj/src/sptools/gcc-3.1-2-build/i686-pc-linux-gnu/libjava/ -B/home/prj/src/sptools/gcc-3.1-2-build/gcc/ -ffloat-store -g -O2 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc -L/home/prj/src/sptools/gcc-3.1-2-build/i686-pc-linux-gnu/libjava -L/home/prj/src/sptools/gcc-3.1-2-build/i686-pc-linux-gnu/libjava/.libs ./.libs/libgcj.so -L/home/prj/src/sptools/gcc-3.1-2-build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/prj/src/sptools/gcc-3.1-2-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lpthread -ldl -L/home/prj/src/sptools/gcc-3.1-2-build/gcc -L/package/host/localhost/gcc-3.1-2/conf/libc/lib -lgcc_s -lc -lgcc_s -Wl,--rpath -Wl,/package/host/localhost/gcc-3.1-2/lib /package/host/localhost/gcc-3.1-2/conf/ld: warning: ld-linux.so.2, needed by /package/host/localhost/glibc-2.2.5-1/lib/libc.so.6, not found (try using -rpath or -rpath-link) /package/host/localhost/glibc-2.2.5-1/lib/libc.so.6: undefined reference to `_dl_lazy@GLIBC_2.1.1' ... So what Makefile variable do I need to set to include the -Wl, options in that command? paul