Date: Sat, 16 Jul 2022 15:16:42 GMT From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Subject: git: 95706340a18e - 2022Q3 - databases/mongodb50: Disable LTO by default. Message-ID: <202207161516.26GFGgBb079963@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch 2022Q3 has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=95706340a18ecfdaaca8fbc05bd25043a8a81562 commit 95706340a18ecfdaaca8fbc05bd25043a8a81562 Author: Daniel Engberb <diizzy@FreeBSD.org> AuthorDate: 2022-07-14 14:43:02 +0000 Commit: Fernando ApesteguĂa <fernape@FreeBSD.org> CommitDate: 2022-07-16 15:13:38 +0000 databases/mongodb50: Disable LTO by default. Building mongo with LTO enabled takes a ridiculously amount of memory (32GB in amd64). Disable -ggdb so memory requirements don't sky rocket (around 10-12GB) PR: 264340 Reported by: ulassayginim@gmail.com Approved by: ronald-lists@klop.ws (maintainer) (cherry picked from commit 0aabc02be18794a56c436233e59379ebaa86c2e0) --- databases/mongodb50/files/patch-SConstruct | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/databases/mongodb50/files/patch-SConstruct b/databases/mongodb50/files/patch-SConstruct index 8fc64862a51e..fa8b0bb3ca4f 100644 --- a/databases/mongodb50/files/patch-SConstruct +++ b/databases/mongodb50/files/patch-SConstruct @@ -1,6 +1,6 @@ ---- SConstruct.orig 2021-07-15 20:56:31 UTC +--- SConstruct.orig 2022-05-17 13:56:34 UTC +++ SConstruct -@@ -1328,9 +1328,9 @@ if has_option('variables-help'): +@@ -1301,9 +1301,9 @@ if has_option('variables-help'): print(env_vars.GenerateHelpText(env)) Exit(0) @@ -13,7 +13,7 @@ if get_option('install-action') != 'default' and get_option('ninja') != "disabled": env.FatalError("Cannot use non-default install actions when generating Ninja.") -@@ -2507,7 +2507,7 @@ if env.TargetOSIs('posix'): +@@ -2370,13 +2370,13 @@ if env.TargetOSIs('posix'): # If runtime hardening is requested, then build anything # destined for an executable with the necessary flags for PIE. env.AppendUnique( @@ -22,7 +22,14 @@ PROGLINKFLAGS=['-pie'], ) -@@ -2684,8 +2684,12 @@ if not env.TargetOSIs('windows', 'macOS') and (env.Too + # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used. + env.Append( CCFLAGS=["-fasynchronous-unwind-tables", +- "-ggdb" if not env.TargetOSIs('emscripten') else "-g", ++ # "-ggdb" if not env.TargetOSIs('emscripten') else "-g", + "-Wall", + "-Wsign-compare", + "-Wno-unknown-pragmas", +@@ -2541,8 +2541,12 @@ if not env.TargetOSIs('windows', 'macOS') and (env.Too # setting it for both C and C++ by setting both of CFLAGS and # CXXFLAGS.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207161516.26GFGgBb079963>