ports/165292: [PATCH] Allow emulators/mame to be build with clang
Zhihao Yuan
lichray at gmail.com
Sun Feb 19 13:10:01 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list