From nobody@FreeBSD.org  Fri May  5 02:47:36 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A4BE116A41B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 May 2006 02:47:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6BF2B43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 May 2006 02:47:36 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k452laxX038482
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 May 2006 02:47:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k452lams038481;
	Fri, 5 May 2006 02:47:36 GMT
	(envelope-from nobody)
Message-Id: <200605050247.k452lams038481@www.freebsd.org>
Date: Fri, 5 May 2006 02:47:36 GMT
From: kaiwai <kaiwai.gardiner@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Firefox fails to respect Makefile .mozconfig switches
X-Send-Pr-Version: www-2.3

>Number:         96808
>Category:       ports
>Synopsis:       Firefox fails to respect Makefile .mozconfig switches
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 05 02:50:22 GMT 2006
>Closed-Date:    Fri May 26 22:44:09 GMT 2006
>Last-Modified:  Fri May 26 22:44:09 GMT 2006
>Originator:     kaiwai
>Release:        FreeBSD 6.0p7
>Organization:
>Environment:
tchaikovsky# uname -a
FreeBSD tchaikovsky.stpetersburg 6.0-RELEASE-p7 FreeBSD 6.0-RELEASE-p7 #0: Wed May  3 20:33:14 NZST 2006     root@tchaikovsky.stpetersburg:/usr/obj/usr/src/sys/GENERIC  i386
tchaikovsky#
>Description:
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.
>How-To-Repeat:
As perusual, make install
>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'.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri May 5 03:19:27 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96808 
State-Changed-From-To: open->closed 
State-Changed-By: mezz 
State-Changed-When: Fri May 26 22:43:30 UTC 2006 
State-Changed-Why:  
It will if you use WITH_OPTIMIZE like 'make WITH_OPTIMIZE=-Os install'. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96808 
>Unformatted:
