Fix building the amd64 loader

This commit is contained in:
Pierre Pronchery 2021-09-29 04:14:24 +02:00
parent 1f07b0b9b4
commit bdfe05c628
2 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ asflags=`../../tools/platform.sh -V ULOADER_CFLAGS -C "$$ARCH"`
[libuLoader]
type=library
sources=boot/multiboot.c,bus.c,bus/cmos.c,bus/ioport.c,bus/vga.c,clock.c,clock/cmos.c,console.c,console/uart.c,display.c,display/vesa.c,display/vga.c,libk.c,syscalls.S
asflags=`../../tools/platform.sh -V LIBULOADER_ASFLAGS -C "$$ARCH"`
cflags=`../../tools/platform.sh -V LIBULOADER_CFLAGS -C "$$ARCH"`
ldflags=`../../tools/platform.sh -V LIBULOADER_LDFLAGS -C "$$ARCH"`

View File

@ -187,8 +187,8 @@ _platform_variable_amd64()
LIBK_LDFLAGS|NATIVE_LDFLAGS)
echo "-nostdlib"
;;
LIBULOADER_CFLAGS)
echo "-m32 -ffreestanding -fPIC -mno-red-zone$extra"
LIBULOADER_ASFLAGS|LIBULOADER_CFLAGS)
echo "-m32 -ffreestanding -fPIC$extra"
;;
LIBULOADER_LDFLAGS)
echo "-m32 -nostdlib"