public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
To: gcc-help@gnu.org
Subject: Re: a more universal BOOT_CFLAGS/BOOT_LDFLAGS
Date: Tue, 13 Aug 2002 11:24:00 -0000	[thread overview]
Message-ID: <m3it2ety0j.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <m3vg6me4hi.fsf@multivac.cwru.edu> (prj@po.cwru.edu's message of "Wed, 07 Aug 2002 17:35:47 -0400")

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

  parent reply	other threads:[~2002-08-13 18:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-07 14:35 Paul Jarc
2002-08-07 14:38 ` Paul Jarc
2002-08-13 11:24 ` Paul Jarc [this message]
2002-08-13 21:29   ` Paul Jarc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3it2ety0j.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    --cc=gcc-help@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).