Date: Mon, 11 Jun 2007 22:42:01 +0200 (CEST) From: Christian Weisgerber <naddy@freebsd.org> To: FreeBSD-gnats-submit@freebsd.org Cc: freebsd-x11@freebsd.org Subject: graphics/dri: fix build on alpha Message-ID: <200706112042.l5BKg1e9034704@kemoauc.mips.inka.de>
index | next in thread | raw e-mail
>Submitter-Id: current-users
>Originator: Christian Weisgerber
>Organization:
>Confidential: no
>Synopsis: graphics/dri: fix build on alpha
>Severity: serious
>Priority: low
>Category: ports
>Class: sw-bug
>Release: FreeBSD 5.5-STABLE alpha
>Environment:
System: FreeBSD kemoauc.mips.inka.de 5.5-STABLE FreeBSD 5.5-STABLE #0: Sun May 20 16:40:02 CEST 2007 naddy@kemoauc.mips.inka.de:/usr/obj/usr/src/sys/GENERIC alpha
>Description:
FreeBSD/alpha can't handle -ffast-math (fails to link due to some
unimplemented functions), so don't try to build graphics/dri with
that option there.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/graphics/dri/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile 21 May 2007 14:59:09 -0000 1.20
+++ Makefile 11 Jun 2007 20:36:15 -0000
@@ -67,11 +67,18 @@
${WRKSRC}/src/mesa/drivers/dri/mga/mgacontext.h
.endif
+.if ${ARCH} == alpha
+FAST_MATH=
+.else
+FAST_MATH= -ffast-math
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/^CC =/d' -e '/^CXX =/d' \
-e 's|/usr/local|$$(LOCALBASE)|g' \
-e 's|/usr/X11R6|$$(X11BASE)|g' \
-e 's|-lpthread|$$(PTHREAD_LIBS)|g' \
+ -e 's|-ffast-math|${FAST_MATH}|g' \
-e 's|^\(SRC_DIRS =\).*|\1 mesa|' \
-e 's|-DHAVE_POSIX_MEMALIGN||' \
${WRKSRC}/configs/freebsd-dri
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706112042.l5BKg1e9034704>
