summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-03-19 19:10:54 +0700
committerGitHub <[email protected]>2023-03-19 19:10:54 +0700
commitd4d6f608850cc4e1160a46a9c60f1e4a2a0d2d41 (patch)
tree1d575059a2cf4449ce6fd044c80b67bde3df1a77 /examples
parent779149ecce03b2daaa7a9991c04db3b93a51bbb0 (diff)
parentf58da311453b13808db775f27337345bcbdf9aba (diff)
Merge pull request #1962 from hathach/update-bsp
Update bsp
Diffstat (limited to 'examples')
-rw-r--r--examples/rules.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 59cf4fd1f..b85837c16 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -66,6 +66,10 @@ ifeq ($(NO_LTO),1)
CFLAGS := $(filter-out -flto,$(CFLAGS))
endif
+ifneq ($(CFLAGS_SKIP),)
+CFLAGS := $(filter-out $(CFLAGS_SKIP),$(CFLAGS))
+endif
+
LDFLAGS += $(CFLAGS) -Wl,[email protected] -Wl,-cref -Wl,-gc-sections
ifdef LD_FILE