diff options
| author | hathach <[email protected]> | 2019-10-09 11:03:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-10-09 11:03:55 +0700 |
| commit | c42edc080cb61d4af8015df6c1d404273b3a5bfa (patch) | |
| tree | ab6eaf9b92a41dc1937314646bce457e414c5f96 /examples | |
| parent | f86f0e54a97d41f628e551c4c45f064665db627b (diff) | |
| parent | b3a5bb3247dfac081a01ccb22498ee2f50e365b4 (diff) | |
Merge branch 'master' into develop
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/make.mk | 4 | ||||
| -rw-r--r-- | examples/rules.mk | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/examples/make.mk b/examples/make.mk index 22d8f7455..699cc43d6 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -80,5 +80,9 @@ CFLAGS += \ ifeq ($(DEBUG), 1) CFLAGS += -O0 -ggdb -DCFG_TUSB_DEBUG=1 else +ifneq ($(BOARD), spresense) CFLAGS += -flto -Os +else + CFLAGS += -Os +endif endif diff --git a/examples/rules.mk b/examples/rules.mk index c3daf9dac..c6997c040 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -3,7 +3,11 @@ # # libc -LIBS += -lgcc -lc -lm -lnosys +LIBS += -lgcc -lm -lnosys + +ifneq ($(BOARD), spresense) +LIBS += -lc +endif # TinyUSB Stack source SRC_C += \ |
