mirror of
https://github.com/tailix/libkernaux.git
synced 2025-03-31 17:25:22 -04:00
Use vendored cross-compiler
This commit is contained in:
parent
b7fbc3860c
commit
7fb3d6c42c
5 changed files with 33 additions and 5 deletions
16
config/i386
16
config/i386
|
@ -1,3 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec ./configure --host='i386-elf' --enable-assert --enable-guard --with-libc AR=`which i386-elf-ar` CC=`which i386-elf-gcc` RANLIB=`which i386-elf-ranlib` CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
||||
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
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec ./configure --host='x86_64-elf' --enable-assert --enable-guard --with-libc AR=`which x86_64-elf-ar` CC=`which x86_64-elf-gcc` RANLIB=`which x86_64-elf-ranlib` CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
|
||||
set -e
|
||||
|
||||
ARCH='x86_64'
|
||||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
all: run
|
||||
|
||||
CCPREFIX = i386-elf-
|
||||
CCPREFIX = ../../vendor/cross/bin/i386-elf-
|
||||
|
||||
AS = $(CCPREFIX)as
|
||||
CC = $(CCPREFIX)gcc
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
all: run
|
||||
|
||||
CCPREFIX = i386-elf-
|
||||
CCPREFIX = ../../vendor/cross/bin/i386-elf-
|
||||
|
||||
AS = $(CCPREFIX)as
|
||||
CC = $(CCPREFIX)gcc
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
all: run
|
||||
|
||||
CCPREFIX = x86_64-elf-
|
||||
CCPREFIX = ../../vendor/cross/bin/x86_64-elf-
|
||||
|
||||
AS = $(CCPREFIX)as
|
||||
CC = $(CCPREFIX)gcc
|
||||
|
|
Loading…
Add table
Reference in a new issue