LFS 3.0 cvs - gcc chapter 5 err?

Gerard Beekmans gerard at linuxfromscratch.org
Tue Mar 20 11:37:16 PST 2001


On March 19, 2001 11:35 pm, Randall Hron wrote:
> I was installing 2.95.3 in chapter 5 (well, switching
> the paths of course)... anyways, the latest cvs book...
>
> The ../gcc-2.9*/configure command seems to be missing
> $LFS from the directory arguments....
>
> I.E. book says:
> ../gcc-2.95.2.1/configure --prefix=/usr \
>     --with-gxx-include-dir=/usr/include/g++ \
>     --enable-languages=c,c++ --disable-nls
>
> Should this be?
>
> ../gcc-2.95.2.1/configure --prefix=$LFS/usr \
>     --with-gxx-include-dir=$LFS/usr/include/g++ \
>     --enable-languages=c,c++ --disable-nls

No, if you do that gcc will hardcode those paths and when chroot'ed or booted 
in LFS gcc will try to find files in /mnt/lfs/usr/include and so forth. 
That's why during configure we use the paths as they will end up being on the 
LFS system and during 'make install' we override them by prefixing $LFS

-- 
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-





More information about the lfs-book mailing list