aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 32c8a7a..e4b2a82 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,5 @@
EXEC := boucane
-CC := g++ -nostdlib -nostdinc -no-pie -fno-builtin -fno-stack-protector -I ./ -I include
+CC := g++ -mcmodel=large -nostdlib -nostdinc -no-pie -fno-builtin -fno-stack-protector -I ./ -I include
LD_SCRIPT := linker.ld
# Note that BOOT_OBJ do not match boot.S
@@ -14,8 +14,7 @@ RES_OBJ := $(addsuffix .o,$(basename $(shell find ./res -type f)))
all: $(EXEC)
$(EXEC): boot/boot.o $(BOOT_OBJ) $(DRIVERS_OBJ) $(LIBS_OBJ) $(CORE_OBJ) $(RES_OBJ) boucane.o
- echo "Resource: $(RES_OBJ)"
- $(CC) -n -T $(LD_SCRIPT) -nostdlib -o $@ $^
+ $(CC) -T $(LD_SCRIPT) -nostdlib -o $@ $^
%.o: %.S
as -o $@ $^