graphics/dri: fix build on alpha
Christian Weisgerber
naddy at freebsd.org
Mon Jun 11 22:44:33 UTC 2007
>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 at 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
More information about the freebsd-x11
mailing list