Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2012 07:01:12 -0600
From:      Zhihao Yuan <lichray@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/165292: [PATCH] Allow emulators/mame to be build with clang
Message-ID:  <4f40f29a.da1ae70a.6194.1706@mx.google.com>
Resent-Message-ID: <201202191310.q1JDA1wo004040@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165292
>Category:       ports
>Synopsis:       [PATCH] Allow emulators/mame to be 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:   Sun Feb 19 13:10:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.3-PRERELEASE amd64
>Organization:
Northern Illinois University
>Environment:
System: FreeBSD elitebook.hp 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #3 r231904: Sun Feb 19 02:16:01 CST 2012 lichray@elitebook.hp:/usr/obj/home/lichray/devel/freebsd-8/sys/HOUKAGO amd64


	
>Description:
	
	Turn of -Werror when clang is used. Clang reports more warnings, but they are not critical actually. Tested.
>How-To-Repeat:
	
>Fix:

	

--- mame_allow_clang.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/emulators/mame.orig/Makefile /usr/ports/emulators/mame/Makefile
--- /usr/ports/emulators/mame.orig/Makefile	2012-02-18 04:17:29.000000000 -0600
+++ /usr/ports/emulators/mame/Makefile	2012-02-19 06:38:56.539733880 -0600
@@ -67,6 +67,9 @@
 .if ${ARCH} == "sparc64"
 BROKEN=		Does not compile on sparc64
 .endif
+.if ${CC} == clang
+MAKE_ENV+=	NOWERROR=1
+.endif
 
 post-extract:
 	@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/mame.zip ${EXTRACT_AFTER_ARGS}
--- mame_allow_clang.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?4f40f29a.da1ae70a.6194.1706>