diff --git a/config/dev b/config/dev index 4195350..a80bf53 100755 --- a/config/dev +++ b/config/dev @@ -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 diff --git a/config/i386 b/config/i386 index 2f75b37..e9fbb16 100755 --- a/config/i386 +++ b/config/i386 @@ -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 diff --git a/config/x86_64 b/config/x86_64 index 452a36e..2d9c211 100755 --- a/config/x86_64 +++ b/config/x86_64 @@ -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