aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc-pass2.xml
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2022-03-02 17:50:41 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2022-03-02 18:00:10 +0800
commit8e0f8a9a521080c2f5fc460319e6d87b12d6039a (patch)
tree106f52ccf990bf5a9aea0025e3ed627b264bdc47 /chapter06/gcc-pass2.xml
parent859502b2f4443ed71e6e727058db255985b6ff38 (diff)
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.
Diffstat (limited to 'chapter06/gcc-pass2.xml')
-rw-r--r--chapter06/gcc-pass2.xml5
1 files changed, 2 insertions, 3 deletions
diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml
index 6dd6f90a5..d10b403e9 100644
--- a/chapter06/gcc-pass2.xml
+++ b/chapter06/gcc-pass2.xml
@@ -88,10 +88,9 @@ cd build</userinput></screen>
<screen><userinput remap="configure">../configure \
--build=$(../config.guess) \
--host=$LFS_TGT \
- --prefix=/usr \
- CC_FOR_TARGET=$LFS_TGT-gcc \
- CXX_FOR_TARGET=$LFS_TGT-g++ \
+ --target=$LFS_TGT \
LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \
+ --prefix=/usr \
--with-build-sysroot=$LFS \
--enable-initfini-array \
--disable-nls \