diff options
author | flz <flz@FreeBSD.org> | 2007-10-25 18:42:56 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2007-10-25 18:42:56 +0800 |
commit | cca15dd02b0941533903af698104a9f294f060b6 (patch) | |
tree | f37bb55813bf25db370461a56f1a8222a867f00d | |
parent | b63a7f3598d507a212c0bf5f68584400ff69b5d7 (diff) | |
download | freebsd-ports-gnome-cca15dd02b0941533903af698104a9f294f060b6.tar.gz freebsd-ports-gnome-cca15dd02b0941533903af698104a9f294f060b6.tar.zst freebsd-ports-gnome-cca15dd02b0941533903af698104a9f294f060b6.zip |
Fix dri build on alpha (disable -ffast-math).
PR: ports/113599
Submitted by: naddy
-rw-r--r-- | graphics/libGL/bsd.mesalib.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/libGL/bsd.mesalib.mk b/graphics/libGL/bsd.mesalib.mk index 39350c1d2962..d7b633b79e68 100644 --- a/graphics/libGL/bsd.mesalib.mk +++ b/graphics/libGL/bsd.mesalib.mk @@ -57,12 +57,19 @@ PLIST_SUB+= I386_AMD64="@comment " ALL_TARGET= freebsd-dri .endif +.if ${ARCH} == alpha +FAST_MATH= +.else +FAST_MATH= -ffast-math +.endif + pre-patch: @${REINPLACE_CMD} \ -e '/^CC =/d' -e '/^CXX =/d' \ -e 's|/usr/X11R6|${X11BASE}|g' \ -e 's|/usr/local|${LOCALBASE}|g' \ -e 's|-lpthread|${PTHREAD_LIBS}|g' \ + -e 's|-ffast-math|${FAST_MATH}|g' \ -e 's|CFLAGS = |CFLAGS = ${CFLAGS} |g' \ -e 's|OPT_FLAGS = .*|OPT_FLAGS = ${CFLAGS}|g' \ -e "s|SRC_DIRS = .*|SRC_DIRS = ${SRCDIR}|g" \ |