From owner-freebsd-gecko@FreeBSD.ORG Wed Jun 27 19:38:14 2012 Return-Path: Delivered-To: gecko@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B9E91065674 for ; Wed, 27 Jun 2012 19:38:14 +0000 (UTC) (envelope-from niclas.zeising@gmail.com) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 777438FC14 for ; Wed, 27 Jun 2012 19:38:13 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id B45D240004 for ; Wed, 27 Jun 2012 21:38:12 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id A9BD840005; Wed, 27 Jun 2012 21:38:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL,FREEMAIL_FROM autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (h-45-105.a163.priv.bahnhof.se [94.254.45.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 0E2D040004; Wed, 27 Jun 2012 21:38:10 +0200 (CEST) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3WMvYG5446z8gh2; Wed, 27 Jun 2012 21:38:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([IPv6:2001:470:dca9:0:1::3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [2001:470:dca9:0:1::6]) (amavisd-new, port 10025) with ESMTPS id 0ISAmd-gCbYI; Wed, 27 Jun 2012 21:38:08 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id 3WMvYC65Q9z8ggx; Wed, 27 Jun 2012 21:38:07 +0200 (CEST) Received: from tifa.daemonic.se (tifa.daemonic.se [IPv6:2001:470:dca9:1::6]) by mail.daemonic.se (Postfix) with ESMTPSA id 3WMvYC4ZXhz9Ctq; Wed, 27 Jun 2012 21:38:07 +0200 (CEST) Received: from tifa.daemonic.se (localhost [IPv6:::1]) by tifa.daemonic.se (Postfix) with ESMTP id 7208D22AC3; Wed, 27 Jun 2012 21:38:07 +0200 (CEST) Message-ID: <4FEB611F.7010000@gmail.com> Date: Wed, 27 Jun 2012 21:38:07 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: AN References: <201206271030.q5RAUGk1053904@freefall.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: Sayetsky Anton , gecko@freebsd.org Subject: Re: ports/169479: www/firefox always adds -O0 to CFLAGS X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2012 19:38:14 -0000 On 06/27/12 20:00, AN wrote: > > > On Wed, 27 Jun 2012, Sayetsky Anton wrote: > >> The following reply was made to PR ports/169479; it has been noted by >> GNATS. >> >> From: Sayetsky Anton >> To: bug-followup@freebsd.org >> Cc: >> Subject: Re: ports/169479: www/firefox always adds -O0 to CFLAGS >> Date: Wed, 27 Jun 2012 13:15:51 +0300 >> >> > Currently, Firefox (and other mozilla ports) does not build with >> base gcc on higher optimization levels. >> Thank you for info. >> But this is absolute incorrect way. Ports must not force user to >> change his own preferences and build settings. >> I think that more correct way is add an option like following: >> OPTIMIZATION Support for optimization levels higher than O0 (needs gcc >> 4.6+) >> And when user selects it, port must pull in required toolchain. >> > I have gcc 4.6+ installed, I want to use it to compile FF. How do I tell > firefox to use gcc 4.6+ to build? cd /usr/ports/www/firefox && env CC=gcc46 CXX=g++46 CPP=cpp46 make install clean should work. However, to avoid building at -O0 you have to edit the Makefile for firefox and remove the line EXTRA_CFLAGS=-O0. Hope this help! -- Niclas Zeising