summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2005-07-04 04:12:12 +0000
committerMaho Nakata <maho@FreeBSD.org>2005-07-04 04:12:12 +0000
commit314c3abb8697d639d49954eade9465f687e9c95e (patch)
tree66568fbc754fd027dc4c42ae48ba48940808e18c /math
parent- Update to 4.56 [1] (diff)
remakeing optimization flags
Notes
Notes: svn path=/head/; revision=138436
Diffstat (limited to 'math')
-rw-r--r--math/sdpa/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/math/sdpa/Makefile b/math/sdpa/Makefile
index 10e5bd42cf06..907fde6c2b02 100644
--- a/math/sdpa/Makefile
+++ b/math/sdpa/Makefile
@@ -41,13 +41,19 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}"
#WITH_SMP= yes
#WITH_ICC= yes
+.include <bsd.port.pre.mk>
+
.if defined(WITH_OPTIMIZED_FLAGS)
+.if ${ARCH} == "amd64"
+CFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time
+CXXFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time
+.else if ${ARCH} == "i386"
+CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
+CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
+.else
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
-.if (${ARCH} == "i386" && !${MACHINE_ARCH} == "amd64" )
-CFLAGS+= -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
-CXXFLAGS+= -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
-.endif # i386
+.endif
.endif
.if defined(WITH_ICC)
@@ -97,4 +103,4 @@ do-install:
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>