Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 950659

Summary: www-client/firefox-136.0: debug symbols are enabled even with CFLAGS=-g0
Product: Gentoo Linux Reporter: Kostadin Shishmanov <kostadinshishmanov>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kostadin Shishmanov 2025-03-05 17:45:37 UTC
I noticed that building firefox even with -j8 on a system with 32GB of RAM somehow made me OOM, and then I realized that I have -g0 in CFLAGS which enables debug symbols as can be seen here:

if is-flag '-g*' ; then
	if use clang ; then
	 mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
	else
	  mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
	fi                                               ^^^^^^^^^
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-05 18:59:06 UTC
I wonder if we need a tc-is-debug or whatever to actually detect if debug information is being emitted.