1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

Remove WITH_OPTIMIZED_ATHLON knob and auto-detect 3dnow to enable Athlon/3dnow

optimizations

Pointed out by:	kris
This commit is contained in:
Michael Johnson 2004-12-09 21:58:18 +00:00
parent 21ee7168bc
commit c4e25c84d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123585

View File

@ -44,17 +44,16 @@ INSTALL_TARGET= install-pkgconfigDATA install-libLTLIBRARIES install-exec
OPTIONS= OPTIMIZED_CFLAGS "Enable optimized CFLAGS" off \
SMP_THREADS "Enable FFTW SMP threads library" off \
OPTIMIZED_ATHLON "Enable AMD Athlon/3dNow! optimizations" off \
SSE "Enable SSE optimized routines" off
.include <bsd.port.pre.mk>
.if defined(WITH_OPTIMIZED_CFLAGS) && !defined(WITH_OPTIMIZED_ATHLON)
.if defined(WITH_OPTIMIZED_CFLAGS)
CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O2 -ffast-math -fomit-frame-pointer"
.endif
.if ${ARCH}=="i386"
.if defined(WITH_OPTIMIZED_ATHLON)
.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 \