summaryrefslogtreecommitdiff
path: root/dev-db/mongodb/files/mongodb-5.0.5-no-force-lld.patch
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-05-06 20:27:34 +0100
committerSam James <sam@gentoo.org>2025-05-06 20:32:06 +0100
commit8ee176dbe6fb61293b3b0ac57d859261e0ca902e (patch)
tree08dbda928eb75de6235a9c7c37e5ee44ecfde6ee /dev-db/mongodb/files/mongodb-5.0.5-no-force-lld.patch
parent07da7cbf83135a8830a1da146b594d4b2e615797 (diff)
downloadgentoo-8ee176dbe6fb61293b3b0ac57d859261e0ca902e.tar.gz
gentoo-8ee176dbe6fb61293b3b0ac57d859261e0ca902e.tar.bz2
gentoo-8ee176dbe6fb61293b3b0ac57d859261e0ca902e.zip
dev-db/mongodb: move all patches to devspae
Wanted to do this after because the patches are a mess and having some history for them is good. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mongodb/files/mongodb-5.0.5-no-force-lld.patch')
-rw-r--r--dev-db/mongodb/files/mongodb-5.0.5-no-force-lld.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/dev-db/mongodb/files/mongodb-5.0.5-no-force-lld.patch b/dev-db/mongodb/files/mongodb-5.0.5-no-force-lld.patch
deleted file mode 100644
index 6ce92778b6bd..000000000000
--- a/dev-db/mongodb/files/mongodb-5.0.5-no-force-lld.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-Don't automagically force lld > gold > bfd. Leave it up to the user.
-
-In particular, avoids issues with LTO enabled (via the flag/scons option)
-where using GCC as compiler, as lld can't do LTO with GCC.
-
-https://bugs.gentoo.org/769986
---- a/SConstruct
-+++ b/SConstruct
-@@ -2824,40 +2824,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,
- })