[PATCH 23/32] no_bsp.cfg: Add hints for CFLAGS and LDFLAGS

Joel Sherrill joel at rtems.org
Fri Mar 11 00:15:28 UTC 2016


updates #2577.
---
 c/src/lib/libbsp/no_cpu/no_bsp/make/custom/no_bsp.cfg | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/make/custom/no_bsp.cfg b/c/src/lib/libbsp/no_cpu/no_bsp/make/custom/no_bsp.cfg
index 8c98f8b..944ebd9 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/make/custom/no_bsp.cfg
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/make/custom/no_bsp.cfg
@@ -7,4 +7,8 @@ include $(RTEMS_ROOT)/make/custom/default.cfg
 RTEMS_CPU=no_cpu
 RTEMS_CPU_MODEL=no_cpu_model
 
-# Miscellaneous additions go here
+# Miscellaneous additions go here. Typical options usually look like
+CFLAGS_OPTIMIZE_V += -O2 -g
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections
-- 
1.8.3.1




More information about the devel mailing list