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:
parent
86bd85720a
commit
721e2075ef
10 changed files with 77 additions and 2 deletions
19
config/root-cross-i386-linux
Executable file
19
config/root-cross-i386-linux
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue