Date: Tue, 17 Jan 2012 19:03:40 +0400 (MSK) From: Yuri Pankov <yuri.pankov@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: knyght@gmail.com Subject: ports/164243: [PATCH] emulators/dosbox: Fix build with clang Message-ID: <201201171503.q0HF3eSq060012@spica.xvoid.org> Resent-Message-ID: <201201171510.q0HFAD34051728@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201171503.q0HF3eSq060012>