fix compilation with gcc 8
This commit is contained in:
parent
7072f7efd0
commit
22e5c79c5c
2
Makefile
2
Makefile
@ -18,7 +18,7 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
LD=ld
|
LD=ld
|
||||||
CFLAGS = -Wall -nostdinc -ffreestanding -DKERNEL_SOS -m32 \
|
CFLAGS = -Wall -nostdinc -ffreestanding -DKERNEL_SOS -m32 \
|
||||||
-fno-asynchronous-unwind-tables
|
-fno-asynchronous-unwind-tables -fno-stack-protector
|
||||||
LIBGCC := $(shell $(CC) -print-libgcc-file-name -m32) # To benefit from FP/64bits artihm.
|
LIBGCC := $(shell $(CC) -print-libgcc-file-name -m32) # To benefit from FP/64bits artihm.
|
||||||
LDFLAGS = --warn-common -nostdlib -m elf_i386
|
LDFLAGS = --warn-common -nostdlib -m elf_i386
|
||||||
OBJECTS = bootstrap/multiboot.o \
|
OBJECTS = bootstrap/multiboot.o \
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
AR=ar
|
AR=ar
|
||||||
OBJCOPY=objcopy
|
OBJCOPY=objcopy
|
||||||
CFLAGS = -Wall -nostdinc -ffreestanding -I. -I.. -m32 -fno-asynchronous-unwind-tables
|
CFLAGS = -Wall -nostdinc -ffreestanding -I. -I.. -m32 -fno-asynchronous-unwind-tables -fno-stack-protector
|
||||||
LIBGCC := $(shell $(CC) -print-libgcc-file-name -m32) # To benefit from FP/64bits artihm.
|
LIBGCC := $(shell $(CC) -print-libgcc-file-name -m32) # To benefit from FP/64bits artihm.
|
||||||
LDFLAGS = -Wl,--warn-common -nostdlib -Wl,-Tldscript.lds -m32 -fno-asynchronous-unwind-tables
|
LDFLAGS = -Wl,--warn-common -nostdlib -Wl,-Tldscript.lds -m32 -fno-asynchronous-unwind-tables
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user