More on Pure LFS
Jules Bjørn Colding
JuBColding at yorkref.com
Thu Feb 13 05:33:56 PST 2003
I am now trying to patch the gcc spec file immediately after having
build ch 6 glibc. Progress report will follow tomorrow.
This is how I do it:
if [ -z "$1" ]; then
echo "No gcc executable, exiting..." 1>&2
if [ -z "$2" ]; then
echo "No sed executable, exiting..." 1>&2
local ver_str=$($gcc_bin -v 2>&1 | $sed_bin -n 1p)
local head="Reading specs from "
<snip - glibc install..>
GCC_SPEC=$(gcc_spec gcc sed)
cp $GCC_SPEC $GCC_SPEC.XXX
sed -e s/"\/stage1\/lib\/ld-linux.so.2"/"\/lib\/ld-linux.so.2"/g $GCC_SPEC.XXX > $GCC_SPEC
rm -f $GCC_SPEC.XXX
On Thu, 2003-02-13 at 13:10, Jules Bjørn Colding wrote:
> Hmm.. It is a little more complicated than that. I am using the ch 5
> tools to build ch 6 (obviously). So what happens now is that the
> Makefiles starts to pick up the binaries outside /stage1 as they are
> installed. It is not realistic to patch all Makefiles to use
> /bin/whatever instead of $(which whatever).
> So it seems that I am stuck for now.
> Is the path forward to change the linker scripts as soon as ch 6 glibc
> has been installed ? I guess that the ch 5 gcc spec file should be
> changed at this point too ?
> On Thu, 2003-02-13 at 12:31, Greg Schafer wrote:
> > > But, wouldn't the new gcc/binutils have the correct spec and linker
> > > scripts automatically or do they "inherit" the stage1 setup from ch 5?
> > Yes, but it's not quite as simple as that. Just change the path and you
> > should be good to go for now. Have patience and the rest will come later.
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe lfs-dev' in the subject header of the message
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message
More information about the lfs-dev