summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-02-24 14:56:15 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-23 11:12:40 +0200
commitd94d6157b4f322a4b2bf80f6a7c232c338a98cc2 (patch)
tree8313473e0cc597dcac4157e0f49049bc20c8ba40
parentREADME.rst: Remove RTEMS_POSIX_API from BSP config (diff)
downloadrtems-libbsd-d94d6157b4f322a4b2bf80f6a7c232c338a98cc2.tar.bz2
build: Ensure mandatory compiler/linker flags
Make sure the flags are present in all build configurations.
-rw-r--r--waf_libbsd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/waf_libbsd.py b/waf_libbsd.py
index d860e687..f1088584 100644
--- a/waf_libbsd.py
+++ b/waf_libbsd.py
@@ -187,10 +187,10 @@ class Builder(builder.ModuleManager):
conf.env['HAVE_%s' % l.upper()] = True
else:
bld.fatal('invalid config test: %s' % (configTest))
- section_flags = ["-fdata-sections", "-ffunction-sections"]
- _add_flags_if_not_present(conf.env.CFLAGS, section_flags)
- _add_flags_if_not_present(conf.env.CXXFLAGS, section_flags)
- _add_flags_if_not_present(conf.env.LINKFLAGS, ["-Wl,--gc-sections"])
+ section_flags = ["-fdata-sections", "-ffunction-sections"]
+ _add_flags_if_not_present(conf.env.CFLAGS, section_flags)
+ _add_flags_if_not_present(conf.env.CXXFLAGS, section_flags)
+ _add_flags_if_not_present(conf.env.LINKFLAGS, ["-Wl,--gc-sections"])
def build(self, bld):
#