From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Feb 15 13:50:07 2009 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 01C7A106566B for ; Sun, 15 Feb 2009 13:50: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 D11678FC18 for ; Sun, 15 Feb 2009 13:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1FDo6aB072937 for ; Sun, 15 Feb 2009 13:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1FDo6UJ072936; Sun, 15 Feb 2009 13:50:06 GMT (envelope-from gnats) Resent-Date: Sun, 15 Feb 2009 13:50:06 GMT Resent-Message-Id: <200902151350.n1FDo6UJ072936@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, Andrew Clark Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEC4A1065677 for ; Sun, 15 Feb 2009 13:48:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 827B68FC12 for ; Sun, 15 Feb 2009 13:48:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1FDmnSo067654 for ; Sun, 15 Feb 2009 13:48:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n1FDmn7W067653; Sun, 15 Feb 2009 13:48:49 GMT (envelope-from nobody) Message-Id: <200902151348.n1FDmn7W067653@www.freebsd.org> Date: Sun, 15 Feb 2009 13:48:49 GMT From: Andrew Clark To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/131709: Additional optimizations for Free-SA 1.5.1 port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2009 13:50:07 -0000 >Number: 131709 >Category: ports >Synopsis: Additional optimizations for Free-SA 1.5.1 port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Feb 15 13:50:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Andrew Clark >Release: 7.1-RELEASE-p1 >Organization: >Environment: powercharge# uname -a FreeBSD powercharge.moskb.local 7.1-RELEASE-p1 FreeBSD 7.1-RELEASE-p1 #0: Sat Jan 10 10:45:40 MSK 2009 andy@powercharge.moskb.local:/usr/obj/usr/src/sys/GENERIC i386 >Description: Additional optimizations for Free-Sa port. This patch is replace for patch that already present in free-sa port, and it add native compilation and flags for gcc, >How-To-Repeat: >Fix: --- global.mk.orig 2008-12-13 20:02:27.000000000 +0300 +++ global.mk 2009-02-15 13:19:14.000000000 +0300 @@ -10,7 +10,7 @@ # etc dir ETCDIR = $(PREFIX)/etc/$(PROGLNAME) # where put reports (you can change it later via free-sa.conf configuration file) -WWWDIR = $(PREFIX)/var/www/htdocs/$(PROGLNAME) +WWWDIR = $(PREFIX)/www/data/$(PROGLNAME) # dir for temporary data storing (you can change it later via free-sa.conf configuration file) TMPDIR = /var/cache/$(PROGLNAME) # where localisation files to put (it is safe to leave default value unchanged) @@ -44,19 +44,19 @@ ################################################## # CPU (allowed by gcc '-march' option: native, i486, pentium3, athlon, nocona, k8 ...) -GCCARCH = i486 +GCCARCH = native # GNU compiler flags (by line number): # 1 Optimizations # 2 Standard compliance checking # 3-7 Warnings flags (recommended by AMD) -#ADDCFLAGS = \ -# -O4 -pipe -march=$(GCCARCH) -fomit-frame-pointer \ -# -std=c99 \ -# -W -Wall -Wextra -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ -# -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ -# -Wreturn-type -Wswitch -Wshadow -Wcast-align -Wuninitialized \ -# -Wchar-subscripts -Wuninitialized -Wbad-function-cast -Wwrite-strings +ADDCFLAGS = \ + -O4 -pipe -march=$(GCCARCH) -fomit-frame-pointer \ + -std=c99 \ + -W -Wall -Wextra -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ + -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ + -Wreturn-type -Wswitch -Wshadow -Wcast-align -Wuninitialized \ + -Wchar-subscripts -Wuninitialized -Wbad-function-cast -Wwrite-strings # GNU linker flags #ADDLDFLAGS = --relax -mrelax >Release-Note: >Audit-Trail: >Unformatted: