mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +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
|
|
@ -83,9 +83,9 @@ src_configure() {
|
|||
../../$dir/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--build=i386-unknown-linux-musl \
|
||||
--target=i386-unknown-linux-musl \
|
||||
--host=i386-unknown-linux-musl \
|
||||
--build="${TARGET}" \
|
||||
--target="${TARGET}" \
|
||||
--host="${TARGET}" \
|
||||
--disable-shared \
|
||||
--program-transform-name=
|
||||
cd ..
|
||||
|
|
@ -94,14 +94,14 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
ln -s . build/build-i386-unknown-linux-musl
|
||||
ln -s . "build/build-${TARGET}"
|
||||
for dir in libiberty libcpp gcc; do
|
||||
make "${MAKEJOBS}" -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include" STMP_FIXINC=
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mkdir -p "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/install-tools/include"
|
||||
mkdir -p "${DESTDIR}${LIBDIR}/gcc/${TARGET}/4.0.4/install-tools/include"
|
||||
make -C build/gcc install STMP_FIXINC= DESTDIR="${DESTDIR}"
|
||||
cp gcc/gsyslimits.h "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/include/syslimits.h"
|
||||
cp gcc/gsyslimits.h "${DESTDIR}${LIBDIR}/gcc/${TARGET}/4.0.4/include/syslimits.h"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue