diff options
Diffstat (limited to 'math/sdpara/Makefile')
-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: |