mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
buildsystem: fix /usr targets
This commit is contained in:
parent
e44dd201a7
commit
2b95120495
@ -430,6 +430,7 @@ for i in $(find "${SYSROOT_PREFIX}/usr"/{lib,share} -type f -name "*.cmake" 2>/d
|
|||||||
done
|
done
|
||||||
for i in $(find "${SYSROOT_PREFIX}" -type l 2>/dev/null); do
|
for i in $(find "${SYSROOT_PREFIX}" -type l 2>/dev/null); do
|
||||||
_tmp="$(readlink -m "${i}")"
|
_tmp="$(readlink -m "${i}")"
|
||||||
|
[[ ${_tmp} =~ ^/usr ]] && _tmp="${SYSROOT_PREFIX}${_tmp}"
|
||||||
if [[ ${_tmp} =~ ^${SYSROOT_PREFIX}/ ]]; then
|
if [[ ${_tmp} =~ ^${SYSROOT_PREFIX}/ ]]; then
|
||||||
ln -sfn "${_tmp/${SYSROOT_PREFIX}\//${PKG_ORIG_SYSROOT_PREFIX}\/}" "${i}"
|
ln -sfn "${_tmp/${SYSROOT_PREFIX}\//${PKG_ORIG_SYSROOT_PREFIX}\/}" "${i}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user