diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-02-24 14:56:15 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-06-23 11:12:40 +0200 |
commit | d94d6157b4f322a4b2bf80f6a7c232c338a98cc2 (patch) | |
tree | 8313473e0cc597dcac4157e0f49049bc20c8ba40 | |
parent | README.rst: Remove RTEMS_POSIX_API from BSP config (diff) | |
download | rtems-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.py | 8 |
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): # |