Turn dead-code removal back on when not simulavr
This commit is contained in:
parent
fd5fe676f4
commit
46bbc09118
|
|
@ -127,13 +127,14 @@ CFLAGS += -finline-functions-called-once
|
||||||
CFLAGS += -mcall-prologues
|
CFLAGS += -mcall-prologues
|
||||||
|
|
||||||
LDFLAGS = -Wl,--as-needed
|
LDFLAGS = -Wl,--as-needed
|
||||||
# Doesn't work for simulavr, can't allow dead code removal.
|
|
||||||
#LDFLAGS += -Wl,--gc-sections
|
|
||||||
|
|
||||||
ifneq ($(realpath ../simulavr/src/simulavr_info.h),)
|
ifneq ($(realpath ../simulavr/src/simulavr_info.h),)
|
||||||
# Neccessary for simulavr support, doesn't hurt others.
|
# Neccessary for simulavr support, doesn't hurt others.
|
||||||
CFLAGS += -DSIMINFO
|
CFLAGS += -DSIMINFO
|
||||||
LDFLAGS += -Wl,--section-start=.siminfo=0x900000
|
LDFLAGS += -Wl,--section-start=.siminfo=0x900000
|
||||||
|
else
|
||||||
|
# Doesn't work for simulavr, can't allow dead code removal.
|
||||||
|
LDFLAGS += -Wl,--gc-sections
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBS = -lm
|
LIBS = -lm
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue