ports/113599: graphics/dri: fix build on alpha

Christian Weisgerber naddy at FreeBSD.org
Mon Jun 11 20:50:02 UTC 2007


>Number:         113599
>Category:       ports
>Synopsis:       graphics/dri: fix build on alpha
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 11 20:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Christian Weisgerber
>Release:        FreeBSD 5.5-STABLE alpha
>Organization:
>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
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list