Changeset 62721d5 in mainline for meson/part/compiler_args/meson.build
- Timestamp:
- 2023-10-22T16:45:25Z (18 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8f9f9b1
- Parents:
- b7493ea0
- git-author:
- Vojtech Horky <vojtech.horky@…> (2023-07-14 13:58:38)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 16:45:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
meson/part/compiler_args/meson.build
rb7493ea0 r62721d5 128 128 add_project_link_arguments(extra_cflags, language : [ lang ]) 129 129 endforeach 130 131 # This flag is needed at several places, hence we define it here. 132 # 133 # For backwards compatibility we try to detect --no-warn-rwx-segments. 134 # However, the autodetection done by Meson also results in 135 # "cannot find entry symbol _start; defaulting to 00000000004000b0" 136 # thus the option is never supported alone. So when detecting we also 137 # specify --entry=main so that the stub source provided by Meson is build 138 # correctly. 139 ldflags_ignore_rwx_segments = [] 140 if cc.has_link_argument('-Wl,--no-warn-rwx-segments,--entry=main') 141 ldflags_ignore_rwx_segments += ['-Wl,--no-warn-rwx-segments'] 142 endif
Note:
See TracChangeset
for help on using the changeset viewer.