mirror of
https://github.com/tailix/libkernaux.git
synced 2025-03-10 17:06:01 -04:00
Improve config scripts
This commit is contained in:
parent
381338d5e3
commit
19677e617a
3 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
exec ./configure --enable-assert --enable-guard
|
set -e
|
||||||
|
|
||||||
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
||||||
|
|
||||||
|
"$REPO/configure" --enable-assert --enable-guard
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
ARCH='i386'
|
ARCH='i386'
|
||||||
HOST="$ARCH-elf"
|
HOST="$ARCH-elf"
|
||||||
REPO="$(pwd)"
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
||||||
PREFIX="$REPO/vendor/cross"
|
PREFIX="$REPO/vendor/cross"
|
||||||
BIN="$PREFIX/bin"
|
BIN="$PREFIX/bin"
|
||||||
|
|
||||||
|
@ -14,4 +14,4 @@ export RANLIB="$BIN/$HOST-ranlib"
|
||||||
|
|
||||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
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
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
ARCH='x86_64'
|
ARCH='x86_64'
|
||||||
HOST="$ARCH-elf"
|
HOST="$ARCH-elf"
|
||||||
REPO="$(pwd)"
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
|
||||||
PREFIX="$REPO/vendor/cross"
|
PREFIX="$REPO/vendor/cross"
|
||||||
BIN="$PREFIX/bin"
|
BIN="$PREFIX/bin"
|
||||||
|
|
||||||
|
@ -14,4 +14,4 @@ export RANLIB="$BIN/$HOST-ranlib"
|
||||||
|
|
||||||
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue