mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-30 08:03:59 +00:00
scripts: also prepare include symlink to sysroot/include
This commit is contained in:
parent
9815852ae0
commit
5c6ccff589
@ -314,10 +314,13 @@ if [ -z "${CT_RESTART}" ]; then
|
||||
CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/lib"
|
||||
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/lib"
|
||||
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib"
|
||||
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/include"
|
||||
|
||||
if [ "${CT_USE_SYSROOT}" = "y" ]; then
|
||||
# Prevent gcc from installing its libraries outside of the sys-root
|
||||
CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
|
||||
# Prevent gcc from installing its libraries outside of the sys-root
|
||||
CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
|
||||
# Prevent libc from installing its headers outside of the sysroot
|
||||
CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/usr/include" "${CT_PREFIX_DIR}/${CT_TARGET}/include"
|
||||
fi
|
||||
|
||||
# Now, in case we're 64 bits, just have lib64/ be a symlink to lib/
|
||||
|
Loading…
x
Reference in New Issue
Block a user