mirror of
https://github.com/tailix/libkernaux.git
synced 2025-06-02 18:21:48 -04:00
Fix cross-compiler build
This commit is contained in:
parent
5b5f67355a
commit
49b6732343
3 changed files with 21 additions and 21 deletions
14
vendor/cross/build/i386/build.sh
vendored
14
vendor/cross/build/i386/build.sh
vendored
|
@ -2,20 +2,20 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
|
||||||
|
|
||||||
ARCH='i386'
|
ARCH='i386'
|
||||||
TARGET="$ARCH-elf"
|
TARGET="$ARCH-elf"
|
||||||
REPO="$(pwd)"
|
PATH="$REPO/bin:$PATH"
|
||||||
PREFIX="$REPO/vendor/cross"
|
|
||||||
PATH="$PREFIX/bin:$PATH"
|
|
||||||
|
|
||||||
if [ -z "$J" ]; then J='1'; fi
|
if [ -z "$J" ]; then J='1'; fi
|
||||||
|
|
||||||
cd "$REPO/vendor/cross/build/$ARCH/binutils"
|
cd "$REPO/build/$ARCH/binutils"
|
||||||
../../../../binutils-2.37/configure --target="$TARGET" --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror
|
"$REPO/src/binutils-2.37/configure" --target="$TARGET" --prefix="$REPO" --with-sysroot --disable-nls --disable-werror
|
||||||
make -j"$J"
|
make -j"$J"
|
||||||
make install
|
make install
|
||||||
|
|
||||||
cd "$REPO/vendor/cross/build/$ARCH/gcc"
|
cd "$REPO/build/$ARCH/gcc"
|
||||||
../../../../gcc-11.2.0/configure --target="$TARGET" --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers
|
"$REPO/src/gcc-11.2.0/configure" --target="$TARGET" --prefix="$REPO" --disable-nls --enable-languages=c,c++ --without-headers
|
||||||
make -j"$J" all-gcc all-target-libgcc
|
make -j"$J" all-gcc all-target-libgcc
|
||||||
make install-gcc install-target-libgcc
|
make install-gcc install-target-libgcc
|
||||||
|
|
14
vendor/cross/build/riscv64/build.sh
vendored
14
vendor/cross/build/riscv64/build.sh
vendored
|
@ -2,20 +2,20 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
|
||||||
|
|
||||||
ARCH='riscv64'
|
ARCH='riscv64'
|
||||||
TARGET="$ARCH-elf"
|
TARGET="$ARCH-elf"
|
||||||
REPO="$(pwd)"
|
PATH="$REPO/bin:$PATH"
|
||||||
PREFIX="$REPO/vendor/cross"
|
|
||||||
PATH="$PREFIX/bin:$PATH"
|
|
||||||
|
|
||||||
if [ -z "$J" ]; then J='1'; fi
|
if [ -z "$J" ]; then J='1'; fi
|
||||||
|
|
||||||
cd "$REPO/vendor/cross/build/$ARCH/binutils"
|
cd "$REPO/build/$ARCH/binutils"
|
||||||
../../../../binutils-2.37/configure --target="$TARGET" --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror
|
"$REPO/src/binutils-2.37/configure" --target="$TARGET" --prefix="$REPO" --with-sysroot --disable-nls --disable-werror
|
||||||
make -j"$J"
|
make -j"$J"
|
||||||
make install
|
make install
|
||||||
|
|
||||||
cd "$REPO/vendor/cross/build/$ARCH/gcc"
|
cd "$REPO/build/$ARCH/gcc"
|
||||||
../../../../gcc-11.2.0/configure --target="$TARGET" --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers
|
"$REPO/src/gcc-11.2.0/configure" --target="$TARGET" --prefix="$REPO" --disable-nls --enable-languages=c,c++ --without-headers
|
||||||
make -j"$J" all-gcc all-target-libgcc
|
make -j"$J" all-gcc all-target-libgcc
|
||||||
make install-gcc install-target-libgcc
|
make install-gcc install-target-libgcc
|
||||||
|
|
14
vendor/cross/build/x86_64/build.sh
vendored
14
vendor/cross/build/x86_64/build.sh
vendored
|
@ -2,20 +2,20 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
|
||||||
|
|
||||||
ARCH='x86_64'
|
ARCH='x86_64'
|
||||||
TARGET="$ARCH-elf"
|
TARGET="$ARCH-elf"
|
||||||
REPO="$(pwd)"
|
PATH="$REPO/bin:$PATH"
|
||||||
PREFIX="$REPO/vendor/cross"
|
|
||||||
PATH="$PREFIX/bin:$PATH"
|
|
||||||
|
|
||||||
if [ -z "$J" ]; then J='1'; fi
|
if [ -z "$J" ]; then J='1'; fi
|
||||||
|
|
||||||
cd "$REPO/vendor/cross/build/$ARCH/binutils"
|
cd "$REPO/build/$ARCH/binutils"
|
||||||
../../../../binutils-2.37/configure --target="$TARGET" --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror
|
"$REPO/binutils-2.37/configure" --target="$TARGET" --prefix="$REPO" --with-sysroot --disable-nls --disable-werror
|
||||||
make -j"$J"
|
make -j"$J"
|
||||||
make install
|
make install
|
||||||
|
|
||||||
cd "$REPO/vendor/cross/build/$ARCH/gcc"
|
cd "$REPO/build/$ARCH/gcc"
|
||||||
../../../../gcc-11.2.0/configure --target="$TARGET" --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers
|
"$REPO/gcc-11.2.0/configure" --target="$TARGET" --prefix="$REPO" --disable-nls --enable-languages=c,c++ --without-headers
|
||||||
make -j"$J" all-gcc all-target-libgcc
|
make -j"$J" all-gcc all-target-libgcc
|
||||||
make install-gcc install-target-libgcc
|
make install-gcc install-target-libgcc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue