Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 766615 Details for
Bug 769986
dev-db/mongodb-4.4.{1,2}[lto] w/ sys-devel/lld installed: selected compiler does not honor -flto
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sconstruct-drop-linker-detection.patch
file_769986.txt (text/plain), 2.46 KB, created by
Sam James
on 2022-03-09 01:14:08 UTC
(
hide
)
Description:
sconstruct-drop-linker-detection.patch
Filename:
MIME Type:
Creator:
Sam James
Created:
2022-03-09 01:14:08 UTC
Size:
2.46 KB
patch
obsolete
>diff --git a/SConstruct b/SConstruct >index 43030138..a0093bc8 100644 >--- a/SConstruct >+++ b/SConstruct >@@ -2823,40 +2823,6 @@ def doConfigure(myenv): > def AddToSHLINKFLAGSIfSupported(env, flag): > return AddFlagIfSupported(env, 'C', '.c', flag, True, SHLINKFLAGS=[flag]) > >- if myenv.ToolchainIs('gcc', 'clang'): >- # This tells clang/gcc to use the gold linker if it is available - we prefer the gold linker >- # because it is much faster. Don't use it if the user has already configured another linker >- # selection manually. >- if any(flag.startswith('-fuse-ld=') for flag in env['LINKFLAGS']): >- myenv.FatalError(f"Use the '--linker' option instead of modifying the LINKFLAGS directly.") >- >- linker_ld = get_option('linker') >- if linker_ld == 'auto': >- # lld has problems with separate debug info on some platforms. See: >- # - https://bugzilla.mozilla.org/show_bug.cgi?id=1485556 >- # - https://bugzilla.mozilla.org/show_bug.cgi?id=1485556 >- # >- # lld also apparently has problems with symbol resolution >- # in some esoteric configurations that apply for us when >- # using --link-model=dynamic mode, so disable lld there >- # too. See: >- # - https://bugs.llvm.org/show_bug.cgi?id=46676 >- # >- # We should revisit all of these issues the next time we upgrade our clang minimum. >- if get_option('separate-debug') == 'off' and get_option('link-model') != 'dynamic': >- if not AddToLINKFLAGSIfSupported(myenv, '-fuse-ld=lld'): >- AddToLINKFLAGSIfSupported(myenv, '-fuse-ld=gold') >- else: >- AddToLINKFLAGSIfSupported(myenv, '-fuse-ld=gold') >- elif link_model.startswith("dynamic") and linker_ld == 'bfd': >- # BFD is not supported due to issues with it causing warnings from some of >- # the third party libraries that mongodb is linked with: >- # https://jira.mongodb.org/browse/SERVER-49465 >- myenv.FatalError(f"Linker {linker_ld} is not supported with dynamic link model builds.") >- else: >- if not AddToLINKFLAGSIfSupported(myenv, f'-fuse-ld={linker_ld}'): >- myenv.FatalError(f"Linker {linker_ld} could not be configured.") >- > detectCompiler = Configure(myenv, help=False, custom_tests = { > 'CheckForCXXLink': CheckForCXXLink, > })
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 769986
:
686295
| 766615