aboutsummaryrefslogtreecommitdiffstats
path: root/astro/boinc-setiathome-enhanced
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-02-05 09:16:39 +0800
committerpav <pav@FreeBSD.org>2007-02-05 09:16:39 +0800
commit0b8198d7da20e1be91db768e3c99a85e95842b5d (patch)
treeb9a102ff50b9afdef7d5e587819b70cde6de5845 /astro/boinc-setiathome-enhanced
parenta006bc259b7a51b27cb94aca81f9f12386a0d9c0 (diff)
downloadfreebsd-ports-gnome-0b8198d7da20e1be91db768e3c99a85e95842b5d.tar.gz
freebsd-ports-gnome-0b8198d7da20e1be91db768e3c99a85e95842b5d.tar.zst
freebsd-ports-gnome-0b8198d7da20e1be91db768e3c99a85e95842b5d.zip
Decouple the logic to use mfpmath={i387|sse} from the -mARCH logic. This
prevents passing " ... -mfpmath=sse ... -mfpmath=387 ... " to the compiler. PR: ports/108683 Submitted by: Rene Ladan <r.c.ladan@gmail.com> (maintainer)
Diffstat (limited to 'astro/boinc-setiathome-enhanced')
-rw-r--r--astro/boinc-setiathome-enhanced/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/astro/boinc-setiathome-enhanced/Makefile b/astro/boinc-setiathome-enhanced/Makefile
index c56cd8c4bdc7..7990a6fbeb67 100644
--- a/astro/boinc-setiathome-enhanced/Makefile
+++ b/astro/boinc-setiathome-enhanced/Makefile
@@ -21,17 +21,22 @@ RUN_DEPENDS= boinc_client:${PORTSDIR}/net/boinc-client
# The compiler flags below are copied from m4/optimizations.m4,
# leaving out the -march flag which is set by /usr/share/mk/bsd.cpu.mk
.if ${MACHINE_CPU:Msse3}
-CFLAGS+= -msse3 -mfpmath=sse
+CFLAGS+= -msse3
.elif ${MACHINE_CPU:Msse2}
-CFLAGS+= -msse2 -mfpmath=sse
+CFLAGS+= -msse2
.elif ${MACHINE_CPU:Msse}
-CFLAGS+= -msse -mfpmath=sse
+CFLAGS+= -msse
.endif
.if ${MACHINE_CPU:Mmmx}
-CFLAGS+= -mmmx -mfpmath=387
+CFLAGS+= -mmmx
.endif
.ifdef ${MACHINE_CPU:M3dnow}
-CFLAGS+= -m3dnow -mfpmath=387
+CFLAGS+= -m3dnow
+.endif
+.if ${MACHINE_CPU:Msse3} || ${MACHINE_CPU:Msse2} || ${MACHINE_CPU:Msse}
+CFLAGS+= -mfpmath=sse
+.else
+CFLAGS+= -mfpmath=387
.endif
# From http://www,lb.shuttle.de/apastron/boincDown.shtml :
# what about other 64 bit archs (especially S/390, see gcc.info.gz) ?