1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2026-08-22 11:04:22 -04:00

Create "root" configs

This commit is contained in:
Alex Kotov 2022-01-17 16:34:38 +05:00
parent 86bd85720a
commit 721e2075ef
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
10 changed files with 77 additions and 2 deletions

19
config/root-cross-i386-linux Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
set -e
REPO="$(realpath "$(dirname "$(realpath "$0")")/..")"
if [ -f "$REPO/Makefile" ]; then make -C "$REPO" distclean; fi
ARCH='i386'
HOST="$ARCH-elf"
TARGET='i686-linux-gnu'
PREFIX="/opt/libkernaux/$ARCH"
export AR="$TARGET-ar"
export CC="$TARGET-gcc"
export RANLIB="$TARGET-ranlib"
export CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
"$REPO/configure" --host="$HOST" --prefix="$PREFIX" --with-libc