libkernaux/config/i386

18 lines
351 B
Plaintext
Raw Normal View History

2022-01-11 13:31:48 +00:00
#!/bin/sh
2022-01-12 05:05:32 +00:00
set -e
ARCH='i386'
HOST="$ARCH-elf"
REPO="$(pwd)"
PREFIX="$REPO/vendor/cross"
BIN="$PREFIX/bin"
export AR="$BIN/$HOST-ar"
export CC="$BIN/$HOST-gcc"
export RANLIB="$BIN/$HOST-ranlib"
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
./configure --host="$HOST" --enable-assert --enable-guard --with-libc