Switch to cross-compiling (to enable using other libs like va_args and maybe fix the printf %f specifier so the math interpreter could work??)

This commit is contained in:
xamidev
2024-08-07 22:52:44 +02:00
parent 1fe94c3fff
commit 907949305d
4 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
CC = gcc
CFLAGS = -m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles -nodefaultlibs -Wall -Wextra -Wno-div-by-zero -c -I src/
CC = i386-elf-7.5.0-Linux-x86_64/bin/i386-elf-gcc
CFLAGS = -Wall -Wextra -Wno-div-by-zero -Wno-builtin-declaration-mismatch -c -I src/
LDFLAGS = -T link.ld -melf_i386
AS = nasm
ASFLAGS = -f elf