1
0
Fork 0
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:
Alex Kotov 2022-01-12 10:05:32 +05:00
parent b7fbc3860c
commit 7fb3d6c42c
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
5 changed files with 33 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -1,6 +1,6 @@
all: run
CCPREFIX = i386-elf-
CCPREFIX = ../../vendor/cross/bin/i386-elf-
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc

View file

@ -1,6 +1,6 @@
all: run
CCPREFIX = i386-elf-
CCPREFIX = ../../vendor/cross/bin/i386-elf-
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc

View file

@ -1,6 +1,6 @@
all: run
CCPREFIX = x86_64-elf-
CCPREFIX = ../../vendor/cross/bin/x86_64-elf-
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc