From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 27 09:20:07 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B941106566B for ; Wed, 27 Jun 2012 09:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5DA548FC12 for ; Wed, 27 Jun 2012 09:20:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5R9K7Pd088696 for ; Wed, 27 Jun 2012 09:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5R9K7DV088695; Wed, 27 Jun 2012 09:20:07 GMT (envelope-from gnats) Resent-Date: Wed, 27 Jun 2012 09:20:07 GMT Resent-Message-Id: <201206270920.q5R9K7DV088695@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sayetsky Anton Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 294E51065742 for ; Wed, 27 Jun 2012 09:10:17 +0000 (UTC) (envelope-from jason@jw.lds.net.ua) Received: from jw.lds.net.ua (jw.lds.net.ua [193.192.37.74]) by mx1.freebsd.org (Postfix) with ESMTP id 9F8668FC12 for ; Wed, 27 Jun 2012 09:10:15 +0000 (UTC) Received: from jw.lds.net.ua (localhost [127.0.0.1]) by jw.lds.net.ua (8.14.5/8.14.5) with ESMTP id q5R9ADYv098103 for ; Wed, 27 Jun 2012 12:10:13 +0300 (EEST) (envelope-from jason@jw.lds.net.ua) Received: (from jason@localhost) by jw.lds.net.ua (8.14.5/8.14.5/Submit) id q5R9A8ur098102; Wed, 27 Jun 2012 12:10:08 +0300 (EEST) (envelope-from jason) Message-Id: <201206270910.q5R9A8ur098102@jw.lds.net.ua> Date: Wed, 27 Jun 2012 12:10:08 +0300 (EEST) From: Sayetsky Anton To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/169479: www/firefox always adds -O0 to CFLAGS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sayetsky Anton List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2012 09:20:07 -0000 >Number: 169479 >Category: ports >Synopsis: www/firefox always adds -O0 to CFLAGS >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 27 09:20:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Sayetsky Anton >Release: FreeBSD 8.3-RELEASE-p1 amd64 >Organization: >Environment: System: FreeBSD j.local 8.3-RELEASE-p1 FreeBSD 8.3-RELEASE-p1 #0 r235504: Wed May 16 14:33:18 EEST 2012 root@j.local:/tmp/obj/mnt/garbage/build/src/sys/JASONW amd64 >Description: www/firefox always adds -O0 to CFLAGS regardless of port options and flags defined in __MAKE_CONF make.conf: # CPUTYPE?=core2 CFLAGS= -O2 -fno-strict-aliasing -pipe COPTFLAGS= -O2 -pipe WITHOUT_MODULES= xfs MAKE_JOBS_NUMBER=5 .if ${.CURDIR:M*/ports/databases/ruby-bdb*} NOPORTDOCS= NOPORTEXAMPLES= .endif .if ${.CURDIR:M*/ports/print/freetype2*} WITH_LCD_FILTERING=yes .endif .if ${.CURDIR:M*/ports/x11-fonts/webfonts*} WITH_MSWINDOWS_LICENSE=yes .endif # added by use.perl 2012-06-24 13:46:59 PERL_VERSION=5.14.2 www/firefox options: # This file is auto-generated by 'make config'. # Options for firefox-13.0.1,1 _OPTIONS_READ=firefox-13.0.1,1 _FILE_COMPLETE_OPTIONS_LIST=DBUS PGO DEBUG LOGGING OPTIMIZED_CFLAGS OPTIONS_FILE_SET+=DBUS OPTIONS_FILE_UNSET+=PGO OPTIONS_FILE_UNSET+=DEBUG OPTIONS_FILE_UNSET+=LOGGING OPTIONS_FILE_UNSET+=OPTIMIZED_CFLAGS Configure log - http://pastebin.com/wDafjAm8 >How-To-Repeat: set CFLAGS something like "-O2 -fno-strict-aliasing -pipe" in make.conf, set CPUTYPE to "core2", cd ports/www/firefox and run make configure You will see: checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe -march=core2 -O0 ) works... yes -O0? Where it comes from? You can find "-O0" in: .mozconfig config.log config.status config/autoconf.mk and in many other files in subdirectories >Fix: >Release-Note: >Audit-Trail: >Unformatted: