diff --git a/gbdk-lib/Makefile.common b/gbdk-lib/Makefile.common index e7797513..903463f8 100644 --- a/gbdk-lib/Makefile.common +++ b/gbdk-lib/Makefile.common @@ -26,6 +26,7 @@ CFLAGS = -I$(TOPDIR)/include -D__PORT_$(PORT) -D__TARGET_$(THIS) CFLAGS += -m$(PORT) CFLAGS += --max-allocs-per-node 50000 CFLAGS += --fsigned-char +CFLAGS += --no-optsdcc-in-asm CC = $(SCC) BUILD = $(TOPDIR)/build/$(THIS) LIB = $(BUILD)/$(THIS).lib diff --git a/gbdk-support/lcc/gb.c b/gbdk-support/lcc/gb.c index 574c7545..8688fd27 100644 --- a/gbdk-support/lcc/gb.c +++ b/gbdk-support/lcc/gb.c @@ -46,7 +46,7 @@ static struct { { "comopt", "--noinvariant --noinduction" }, { "com", "%sdccdir%sdcc" }, { "comflag", "-c"}, - { "comdefault", "-m%port% --no-std-crt0 --fsigned-char --use-stdout -D__PORT_%port% -D__TARGET_%plat% "}, + { "comdefault", "-m%port% --no-std-crt0 --fsigned-char --use-stdout --no-optsdcc-in-asm -D__PORT_%port% -D__TARGET_%plat% "}, /* asdsgb assembler defaults: -p: disable pagination -o: create object file