Changeset d94d615 in rtems-libbsd


Ignore:
Timestamp:
02/24/22 13:56:15 (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f009252
Parents:
3c2de34
git-author:
Sebastian Huber <sebastian.huber@…> (02/24/22 13:56:15)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/23/22 09:12:40)
Message:

build: Ensure mandatory compiler/linker flags

Make sure the flags are present in all build configurations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waf_libbsd.py

    r3c2de34 rd94d615  
    188188                    else:
    189189                        bld.fatal('invalid config test: %s' % (configTest))
    190             section_flags = ["-fdata-sections", "-ffunction-sections"]
    191             _add_flags_if_not_present(conf.env.CFLAGS, section_flags)
    192             _add_flags_if_not_present(conf.env.CXXFLAGS, section_flags)
    193             _add_flags_if_not_present(conf.env.LINKFLAGS, ["-Wl,--gc-sections"])
     190        section_flags = ["-fdata-sections", "-ffunction-sections"]
     191        _add_flags_if_not_present(conf.env.CFLAGS, section_flags)
     192        _add_flags_if_not_present(conf.env.CXXFLAGS, section_flags)
     193        _add_flags_if_not_present(conf.env.LINKFLAGS, ["-Wl,--gc-sections"])
    194194
    195195    def build(self, bld):
Note: See TracChangeset for help on using the changeset viewer.