ports/131709: Additional optimizations for Free-SA 1.5.1 port
Andrew Clark
andrewclarkii at gmail.com
Sun Feb 15 13:50:07 UTC 2009
>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 at 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:
More information about the freebsd-ports-bugs
mailing list