forked from Lainports/freebsd-ports
Add an OPTION to enable MMX optimizations on x86.
Not available with GCC3, which suffers an internal compiler error. PR: 127468 Submitted by: bf2006a@yahoo.com
This commit is contained in:
parent
44c5a59194
commit
f52fcde167
1 changed files with 13 additions and 1 deletions
|
|
@ -21,4 +21,16 @@ GNU_CONFIGURE= yes
|
|||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
OPTIONS= MMX "Enable MMX optimizations (x86 only)" Off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# GCC 3.x fails with internal compiler errror
|
||||
.if defined(WITH_MMX) && (${ARCH} == "i386" || ${ARCH} == "amd64") && \
|
||||
(${OSVERSION} >= 700042)
|
||||
CONFIGURE_ARGS+= --enable-mmx
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-mmx
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue