update makefile to compile on arch linux gcc

This commit is contained in:
Freya Murphy 2024-09-25 15:04:20 -04:00
parent 3d9b2dcfc6
commit 3517d96280
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -47,7 +47,7 @@ CFLAGS := $(CFLAGS) $(DEFS) $(LABDEFS) -O1 -fno-builtin -I$(TOP) -MD
CFLAGS += -fno-omit-frame-pointer CFLAGS += -fno-omit-frame-pointer
CFLAGS += -std=gnu99 CFLAGS += -std=gnu99
CFLAGS += -static CFLAGS += -static
CFLAGS += -Wall -Wno-format -Wno-unused -Werror -gstabs -m32 CFLAGS += -Wall -Wno-format -Wno-unused -Werror -m32
# -fno-tree-ch prevented gcc from sometimes reordering read_ebp() before # -fno-tree-ch prevented gcc from sometimes reordering read_ebp() before
# mon_backtrace()'s function prologue on gcc version: (Debian 4.7.2-5) 4.7.2 # mon_backtrace()'s function prologue on gcc version: (Debian 4.7.2-5) 4.7.2
CFLAGS += -fno-tree-ch CFLAGS += -fno-tree-ch
@ -85,8 +85,8 @@ all:
$(OBJDIR)/lib/%.o $(OBJDIR)/fs/%.o $(OBJDIR)/net/%.o \ $(OBJDIR)/lib/%.o $(OBJDIR)/fs/%.o $(OBJDIR)/net/%.o \
$(OBJDIR)/user/%.o $(OBJDIR)/user/%.o
KERN_CFLAGS := $(CFLAGS) -DJOS_KERNEL -gstabs KERN_CFLAGS := $(CFLAGS) -DJOS_KERNEL
USER_CFLAGS := $(CFLAGS) -DJOS_USER -gstabs USER_CFLAGS := $(CFLAGS) -DJOS_USER
# Update .vars.X if variable X has changed since the last make run. # Update .vars.X if variable X has changed since the last make run.
# #