This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]