gcc pass2: use --target=$LFS_TGT instead of many {C,CXX}_FOR_TARGET

There is also a "GCC_FOR_TARGET" which was not set correctly.  The
--target=$LFS_TGT parameter can set up all of these variables as we
expected.
This commit is contained in:
Xi Ruoyao 2022-03-02 17:50:41 +08:00 committed by William Harrington
parent d693c8698e
commit b6d0e2b7e1

View File

@ -92,10 +92,9 @@ cd build</userinput></screen>
<screen><userinput remap="configure">../configure \ <screen><userinput remap="configure">../configure \
--build=$(../config.guess) \ --build=$(../config.guess) \
--host=$LFS_TGT \ --host=$LFS_TGT \
--prefix=/usr \ --target=$LFS_TGT \
CC_FOR_TARGET=$LFS_TGT-gcc \
CXX_FOR_TARGET=$LFS_TGT-g++ \
LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \ LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \
--prefix=/usr \
--with-build-sysroot=$LFS \ --with-build-sysroot=$LFS \
--enable-initfini-array \ --enable-initfini-array \
--disable-nls \ --disable-nls \