Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950659 - www-client/firefox-136.0: debug symbols are enabled even with CFLAGS=-g0
Summary: www-client/firefox-136.0: debug symbols are enabled even with CFLAGS=-g0
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-05 17:45 UTC by Kostadin Shishmanov
Modified: 2025-03-05 18:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.