This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/35532] Native GCC no longer searches $prefix/lib for startfiles when run from $objdir
- From: "carlos at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2008 17:25:30 -0000
- Subject: [Bug driver/35532] Native GCC no longer searches $prefix/lib for startfiles when run from $objdir
- References: <bug-35532-5337@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from carlos at codesourcery dot com 2008-03-24 17:25 -------
Greg,
I've gone through your DIY instructions. Very well done. Using the sysroot
infrastructure is definitely the way forward for you. Looking at your existing
DIY instructions you probably want to:
1. Create a "Construct sysroot" step before the first stage gcc (3.5), this
will include creating $sysroot/usr/include.
2. Install the kernel headers (3.6) as part of the "Construct sysroot" step, or
as the next step.
You might want to verify that this is still needed:
~~~
echo "
/* Remove /usr/include from end of include search path. */
#undef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR 0" >> gcc/config/${DL_HEADER}
~~~
in step (3.10).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35532