Bug 96808

Summary: Firefox fails to respect Makefile .mozconfig switches
Product: Ports & Packages Reporter: kaiwai <kaiwai.gardiner>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description kaiwai 2006-05-05 03:50:22 UTC
When compiling Firefox, I edited the file Makefile as to specify the optimization level that I wished to use as to it fails to respect the CFLAG variable specified in make.conf

I added --enable-optimize=-Os to the make file

When .mozconfig file was created, not only was --enable-optimize=-Os added, but --enable-optimize=-O too, resulting in --enable-optimize=-O being used as default.

The only way around this I found was to press ctlr-c to cancel (before it got to configuration stage), manually edit the .mozconfig file, and remove the offending switches.

Fix: 

delete the original .mozconfig file, and copy a static one into its place as to force it to use the options dictated by Makefile rather than going with its 'built in defaults'.
How-To-Repeat: As perusual, make install
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-05-05 04:19:27 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer(s).
Comment 2 Jeremy Messenger freebsd_committer freebsd_triage 2006-05-26 23:43:30 UTC
State Changed
From-To: open->closed

It will if you use WITH_OPTIMIZE like 'make WITH_OPTIMIZE=-Os install'.