Improve config scripts

This commit is contained in:
Alex Kotov 2022-01-15 12:19:15 +05:00
parent 381338d5e3
commit 19677e617a
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
3 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,7 @@
#!/bin/sh
exec ./configure --enable-assert --enable-guard
set -e
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
"$REPO/configure" --enable-assert --enable-guard

View File

@ -4,7 +4,7 @@ set -e
ARCH='i386'
HOST="$ARCH-elf"
REPO="$(pwd)"
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
PREFIX="$REPO/vendor/cross"
BIN="$PREFIX/bin"
@ -14,4 +14,4 @@ export RANLIB="$BIN/$HOST-ranlib"
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
./configure --host="$HOST" --enable-assert --enable-guard --with-libc
"$REPO/configure" --host="$HOST" --enable-assert --enable-guard --with-libc

View File

@ -4,7 +4,7 @@ set -e
ARCH='x86_64'
HOST="$ARCH-elf"
REPO="$(pwd)"
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
PREFIX="$REPO/vendor/cross"
BIN="$PREFIX/bin"
@ -14,4 +14,4 @@ export RANLIB="$BIN/$HOST-ranlib"
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
./configure --host="$HOST" --enable-assert --enable-guard --with-libc
"$REPO/configure" --host="$HOST" --enable-assert --enable-guard --with-libc