[rtems-libbsd commit] build: Ensure mandatory compiler/linker flags
Sebastian Huber
sebh at rtems.org
Thu Jun 23 09:06:41 UTC 2022
Module: rtems-libbsd
Branch: master
Commit: d94d6157b4f322a4b2bf80f6a7c232c338a98cc2
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=d94d6157b4f322a4b2bf80f6a7c232c338a98cc2
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Feb 24 14:56:15 2022 +0100
build: Ensure mandatory compiler/linker flags
Make sure the flags are present in all build configurations.
---
waf_libbsd.py | 8 ++++----
1 file 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):
#
More information about the vc
mailing list