This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: a more universal BOOT_CFLAGS/BOOT_LDFLAGS
I wrote:
> 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:
Ok, specifying the include and library directories in environment
variables, and specifying the rpath and dynamic linker in all of
CFLAGS, LDFLAGS, STAGE1_CFLAGS, and BOOT_CFLAGS seems to work.
(Shouldn't LDFLAGS alone be enough? It seems it isn't used at least
for building gengenrtl.) I was tripped up because only CFLAGS is
taken from the environment by ./configure; the others must be given on
the command line for make.
paul