[Bug driver/35532] Native GCC no longer searches $prefix/lib for startfiles when run from $objdir

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 21 17:20:00 GMT 2008



------- Comment #8 from mmitchel at gcc dot gnu dot org  2008-03-21 17:19 -------
Greg --

I'm sorry it's taken me so long to comment on this issue.  I've been traveling
for most of the time since you reported this issue.

The change in driver behavior is intentional.  Using the sysroot flags
(including --with-build-sysroot) is indeed the intended way of doing what you
need to do.  You are right, however, that the driver will look for a /usr
subdirectory within the build sysroot.  I'm a little surprised that your GLIBC
installation isn't set up that way, but you can fake it by doing something
like:

  ln -s . $prefix/usr 

so that $prefix/usr/include is just another name for $prefix/include.

-- Mark


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at codesourcery dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35532



More information about the Gcc-bugs mailing list