Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2020 15:03:40 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528921 - head/emulators/mednafen
Message-ID:  <202003221503.02MF3egG059450@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sun Mar 22 15:03:39 2020
New Revision: 528921
URL: https://svnweb.freebsd.org/changeset/ports/528921

Log:
  emulators/mednafen: fix build on powerpc64 elfv2
  
  Switch to GCC on powerpc64, clang has already reported issue:
  Assertion failed: (!isSigned && "Legalize cannot Expand SINT_TO_FP for i64 yet"), function ExpandLegalINT_TO_FP, file /usr/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp, line 2420.

Modified:
  head/emulators/mednafen/Makefile

Modified: head/emulators/mednafen/Makefile
==============================================================================
--- head/emulators/mednafen/Makefile	Sun Mar 22 14:33:46 2020	(r528920)
+++ head/emulators/mednafen/Makefile	Sun Mar 22 15:03:39 2020	(r528921)
@@ -29,7 +29,7 @@ SUB_FILES=	pkg-message
 CONFIGURE_ARGS+=--disable-alsa --disable-alsatest \
 		--with-sdl-prefix=${LOCALBASE}
 
-USES=		compiler:c++11-lib cpe gl iconv pkgconfig:build sdl tar:xz
+USES=		cpe gl iconv pkgconfig:build sdl tar:xz
 CPE_VENDOR=	david_shadoff
 
 OPTIONS_DEFINE=	NLS DOCS JACK
@@ -71,6 +71,14 @@ PSX_CONFIGURE_ENABLE=psx
 SMS_CONFIGURE_ENABLE=sms
 SWAN_CONFIGURE_ENABLE=wswan
 VB_CONFIGURE_ENABLE=vb
+
+.include <bsd.port.options.mk>
+
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c++11-lib
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|versionsort|alphasort|g' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003221503.02MF3egG059450>