Browse Source

fix compilation with gcc 8

master
Mathieu Maret 3 years ago
parent
commit
22e5c79c5c
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Makefile
  2. +1
    -1
      userland/Makefile

+ 1
- 1
Makefile View File

@ -18,7 +18,7 @@
CC=gcc
LD=ld
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.
LDFLAGS = --warn-common -nostdlib -m elf_i386
OBJECTS = bootstrap/multiboot.o \


+ 1
- 1
userland/Makefile View File

@ -18,7 +18,7 @@
CC=gcc
AR=ar
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.
LDFLAGS = -Wl,--warn-common -nostdlib -Wl,-Tldscript.lds -m32 -fno-asynchronous-unwind-tables


Loading…
Cancel
Save