summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2005-09-01 18:00:04 +0000
committerMichael Johnson <ahze@FreeBSD.org>2005-09-01 18:00:04 +0000
commit045aa02b554257ca6ce3075510ee42bdc5c95a76 (patch)
treea2597fe69f1447a8768de176586f4d946d96b991 /math
parent- Re-add patch-configure (removed by mistake) to fix the build on the cluster; (diff)
- Remove -malign-double from WITH_OPTIMIZED_CFLAGS on amd64 to fix build
PR: ports/85555 Submitted by: Tetsuya Uemura
Notes
Notes: svn path=/head/; revision=141724
Diffstat (limited to 'math')
-rw-r--r--math/fftw3/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/math/fftw3/Makefile b/math/fftw3/Makefile
index 7862b7cbdfe1..2b70bea455d5 100644
--- a/math/fftw3/Makefile
+++ b/math/fftw3/Makefile
@@ -63,9 +63,12 @@ USE_GCC= 3.4
.endif
.if ${MACHINE_CPU:M3dnow}
CONFIGURE_ARGS+=--enable-k7
-CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O3 -fomit-frame-pointer -fno-schedule-insns \
- -malign-double -fstrict-aliasing -mpreferred-stack-boundary=4 \
- -ffast-math"
+CFLAGS_3DNOW= ${CFLAGS:N-O:N-O*} -O3 -fomit-frame-pointer -fno-schedule-insns \
+ -fstrict-aliasing -mpreferred-stack-boundary=4 -ffast-math
+.if ${ARCH} != "amd64"
+CFLAGS_3DNOW+= -malign-double
+.endif
+CONFIGURE_ENV+= CFLAGS="${CFLAGS_3DNOW}"
.endif
.endif # end WITH_OPTIMIZED_CFLAGS