Changeset 8e0f8a9


Ignore:
Timestamp:
03/02/2022 10:00:10 AM (2 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
3bb463d
Parents:
859502b
git-author:
Xi Ruoyao <xry111@…> (03/02/2022 09:50:41 AM)
git-committer:
Xi Ruoyao <xry111@…> (03/02/2022 10:00:10 AM)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc-pass2.xml

    r859502b r8e0f8a9  
    8989    --build=$(../config.guess)                     \
    9090    --host=$LFS_TGT                                \
     91    --target=$LFS_TGT                              \
     92    LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc      \
    9193    --prefix=/usr                                  \
    92     CC_FOR_TARGET=$LFS_TGT-gcc                     \
    93     CXX_FOR_TARGET=$LFS_TGT-g++                    \
    94     LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc      \
    9594    --with-build-sysroot=$LFS                      \
    9695    --enable-initfini-array                        \
Note: See TracChangeset for help on using the changeset viewer.