mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-14 23:35:24 +01:00
Define "TARGET" variable to avoid hardcoding "i386-unknown-linux-musl" everywhere
This commit is contained in:
parent
a7397d5caa
commit
502e8f944c
37 changed files with 81 additions and 79 deletions
|
|
@ -120,9 +120,9 @@ src_configure() {
|
|||
--enable-install-libiberty \
|
||||
--enable-deterministic-archives \
|
||||
--with-system-zlib \
|
||||
--build=i386-unknown-linux-musl \
|
||||
--host=i386-unknown-linux-musl \
|
||||
--target=i386-unknown-linux-musl \
|
||||
--build="${TARGET}" \
|
||||
--host="${TARGET}" \
|
||||
--target="${TARGET}" \
|
||||
--program-prefix="" \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
|
|
@ -147,7 +147,7 @@ src_install() {
|
|||
# Create triplet symlinks
|
||||
pushd "${DESTDIR}${PREFIX}/bin"
|
||||
for f in *; do
|
||||
ln -s "${PREFIX}/bin/${f}" "i386-unknown-linux-musl-${f}"
|
||||
ln -s "${PREFIX}/bin/${f}" "${TARGET}-${f}"
|
||||
done
|
||||
popd
|
||||
|
||||
|
|
|
|||
|
|
@ -131,9 +131,9 @@ src_configure() {
|
|||
../configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--build=i386-unknown-linux-musl \
|
||||
--host=i386-unknown-linux-musl \
|
||||
--target=i386-unknown-linux-musl \
|
||||
--build="${TARGET}" \
|
||||
--host="${TARGET}" \
|
||||
--target="${TARGET}" \
|
||||
--enable-static \
|
||||
--disable-nls \
|
||||
--disable-multilib \
|
||||
|
|
@ -157,7 +157,7 @@ src_install() {
|
|||
# Create triplet symlinks
|
||||
pushd "${DESTDIR}${PREFIX}/bin"
|
||||
for f in *; do
|
||||
ln -s "${PREFIX}/bin/${f}" "i386-unknown-linux-musl-${f}"
|
||||
ln -s "${PREFIX}/bin/${f}" "${TARGET}-${f}"
|
||||
done
|
||||
popd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue