mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 02:57:34 +00:00
Ports: Add $READELF and $HOST_READELF variables to include scripts
Ports such as python require a distinction between host readelf and target readelf. Set a toolchain-specific varaible for these, but be sure save off the host readelf binary in case anyone needs it later. This is part of allowing python to build with the Clang toolchain.
This commit is contained in:
parent
b85c785c12
commit
498d3d8537
2 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then
|
|||
export CXX="clang++ --target=${SERENITY_ARCH}-pc-serenity --sysroot=${SERENITY_BUILD_DIR}/Root"
|
||||
export AR="llvm-ar"
|
||||
export RANLIB="llvm-ranlib"
|
||||
export READELF="llvm-readelf"
|
||||
export PATH="${SERENITY_SOURCE_DIR}/Toolchain/Local/clang/bin:${HOST_PATH}"
|
||||
else
|
||||
export SERENITY_BUILD_DIR="${SERENITY_SOURCE_DIR}/Build/${SERENITY_ARCH}"
|
||||
|
@ -15,6 +16,7 @@ else
|
|||
export CXX="${SERENITY_ARCH}-pc-serenity-g++"
|
||||
export AR="${SERENITY_ARCH}-pc-serenity-ar"
|
||||
export RANLIB="${SERENITY_ARCH}-pc-serenity-ranlib"
|
||||
export READELF="${SERENITY_ARCH}-pc-serenity-readelf"
|
||||
export PATH="${SERENITY_SOURCE_DIR}/Toolchain/Local/${SERENITY_ARCH}/bin:${HOST_PATH}"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue