From dff7ab3f8f969cb9c1e95e6d7a74b99428e06971 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 5 Jun 2019 15:05:56 -0400 Subject: make -O work with asm volatile(...) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 57a57cd..923c70b 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ OBJCOPY = $(TOOLPREFIX)objcopy OBJDUMP = $(TOOLPREFIX)objdump # CFLAGS = -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -MD -ggdb -Werror -fno-omit-frame-pointer -O -CFLAGS = -Wall -Werror +CFLAGS = -Wall -Werror -O CFLAGS += -mcmodel=medany CFLAGS += -ffreestanding -fno-common -nostdlib -mno-relax CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) -- cgit v1.2.3