ports/164243: [PATCH] emulators/dosbox: Fix build with clang

Yuri Pankov yuri.pankov at gmail.com
Tue Jan 17 15:10:13 UTC 2012


>Number:         164243
>Category:       ports
>Synopsis:       [PATCH] emulators/dosbox: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 17 15:10:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Yuri Pankov
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD spica.xvoid.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r230138M: Mon Jan 16 04:12:57 MSK
>Description:
Fix build with clang by using -O0 (I had a patch fixing compilation
with higher optimization levels, but dosbox would hang indefinitely
using dynamic core if compiled with -O1 or higher).

Port maintainer (knyght at gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- dosbox-0.74_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/dosbox/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile	21 Oct 2011 16:02:30 -0000	1.27
+++ Makefile	17 Jan 2012 15:01:13 -0000
@@ -27,6 +27,10 @@
 CPPFLAGS+=		-I${LOCALBASE}/include
 CONFIGURE_ARGS+=	--enable-core-inline
 
+.if ${CXX:T:M*clang*}
+CFLAGS:=	${CFLAGS:C/-O.?/-O0/g}
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's#\/usr\/share\/doc\/dosbox#${DOCSDIR}#g' \
 		${WRKSRC}/docs/dosbox.1
--- dosbox-0.74_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list