diff options
author | Myles Borins <mylesborins@github.com> | 2020-11-04 06:07:34 +0300 |
---|---|---|
committer | Beth Griggs <bgriggs@redhat.com> | 2020-12-15 23:15:12 +0300 |
commit | 4664681220333a655ab465fe69e3a2ea20b908ee (patch) | |
tree | fe45fbd875383cadc13cfcbb1c65532ecf6c1e71 /configure.py | |
parent | d027be055140ade59116a0e673c4cd6bb81357e0 (diff) |
tools: don't print gold linker warning w/o flag
Currently warning is printed called even if the selection ordering flag
has not been passed.
Only print warning if `--limit-configure-section-file`
has been passed to configure.
Fixes: https://github.com/nodejs/node/issues/35872
PR-URL: https://github.com/nodejs/node/pull/35955
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.py b/configure.py index a015b8ad1ae..e6f7e4db004 100755 --- a/configure.py +++ b/configure.py @@ -1722,7 +1722,8 @@ def configure_section_file(o): proc = subprocess.Popen(['ld.gold'] + ['-v'], stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE) except OSError: - warn('''No acceptable ld.gold linker found!''') + if options.node_section_ordering_info != "": + warn('''No acceptable ld.gold linker found!''') return 0 match = re.match(r"^GNU gold.*([0-9]+)\.([0-9]+)$", |