diff options
author | maho <maho@FreeBSD.org> | 2005-07-04 04:59:27 +0000 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2005-07-04 04:59:27 +0000 |
commit | 697b48d614a8938f5f86573e4639a975ec163629 (patch) | |
tree | 01a0f33d8233d9f58bc33fce52064eac5bdc79c8 /math/sdpara | |
parent | 53c13ca1e27d1ae5d64d7dcbf4eb5442916c6d68 (diff) | |
download | FreeBSD-ports-697b48d614a8938f5f86573e4639a975ec163629.zip FreeBSD-ports-697b48d614a8938f5f86573e4639a975ec163629.tar.gz |
Re-organize optimization flags so that runs much more faster
Diffstat (limited to 'math/sdpara')
-rw-r--r-- | math/sdpara/Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/math/sdpara/Makefile b/math/sdpara/Makefile index 268e6b0..98a63f6 100644 --- a/math/sdpara/Makefile +++ b/math/sdpara/Makefile @@ -35,12 +35,16 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}" .include <bsd.port.pre.mk> .if defined(WITH_OPTIMIZED_FLAGS) -FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wno-multichar -.if (${ARCH} == "i386") -FFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -CXXFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -.endif # i386 +.if ${ARCH} == "amd64" +FFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time +CFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time +.else if ${ARCH} == "i386" +FFLAGS+= -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 +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 +.else +FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar +CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar +.endif .endif post-patch: |