Fix build with clang
Submitted by: dim
This commit is contained in:
parent
7eca783bc7
commit
d17e1f3699
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=326336
2 changed files with 13 additions and 7 deletions
|
@ -1,9 +1,5 @@
|
|||
# New ports collection makefile for: xmame
|
||||
# Date created: 4 Sep 1999
|
||||
# Whom: Donald Burr <dburr@FreeBSD.org>
|
||||
#
|
||||
# Created by: Donald Burr <dburr@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME?= xmame
|
||||
PORTVERSION?= 0.106
|
||||
|
@ -24,9 +20,8 @@ LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
|||
NO_CDROM= License does not permit selling
|
||||
|
||||
USES= perl5 gmake
|
||||
USE_GCC= any
|
||||
USE_BZIP2= yes
|
||||
MAKE_ARGS+= CC=${CC} ARCH=freebsd
|
||||
MAKE_ARGS+= CC="${CC}" ARCH=freebsd
|
||||
WANT_SDL= yes
|
||||
WANT_GNOME= yes
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
|
11
emulators/xmame/files/patch-src-unix-osinline.h
Normal file
11
emulators/xmame/files/patch-src-unix-osinline.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/unix/osinline.h.orig 2006-05-15 18:47:35.000000000 +0200
|
||||
+++ src/unix/osinline.h 2013-08-28 11:04:54.000000000 +0200
|
||||
@@ -32,7 +32,7 @@ INLINE int _vec_mult(int x, int y)
|
||||
: "=&a" (result) /* the result has to go in eax */
|
||||
: "mr" (x), /* x and y can be regs or mem */
|
||||
"mr" (y)
|
||||
- : "%edx", "%cc" /* clobbers edx and flags */
|
||||
+ : "%edx", "cc" /* clobbers edx and flags */
|
||||
);
|
||||
return result;
|
||||
}
|
Loading…
Reference in a new issue