From owner-dev-commits-ports-main@freebsd.org Fri Apr 23 15:05:28 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DD6E35F59AB; Fri, 23 Apr 2021 15:05:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FRczX5sNzz4lVD; Fri, 23 Apr 2021 15:05:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BC3FB743D; Fri, 23 Apr 2021 15:05:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13NF5StH019979; Fri, 23 Apr 2021 15:05:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13NF5SIu019978; Fri, 23 Apr 2021 15:05:28 GMT (envelope-from git) Date: Fri, 23 Apr 2021 15:05:28 GMT Message-Id: <202104231505.13NF5SIu019978@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: b842770973b7 - main - games/libretro-snes9x2010: fix build MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b842770973b7a381cf5f2b596a6bf7da04be418b Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2021 15:05:29 -0000 The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=b842770973b7a381cf5f2b596a6bf7da04be418b commit b842770973b7a381cf5f2b596a6bf7da04be418b Author: Dmitry Marakasov AuthorDate: 2021-04-23 13:25:50 +0000 Commit: Dmitry Marakasov CommitDate: 2021-04-23 15:03:06 +0000 games/libretro-snes9x2010: fix build - Fix build by changing gcc-specific argument to clang compatible (-flto=auto -> -flto). This change was upstreamed so it may be dropped on the next port update. For FreeBSD 11, don't use -flto at all to also fix the build. - While here, minor style fixes Approved by: portmgr blanket --- games/libretro-snes9x2010/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/games/libretro-snes9x2010/Makefile b/games/libretro-snes9x2010/Makefile index a0ef5e36a9bb..4036a8792a79 100644 --- a/games/libretro-snes9x2010/Makefile +++ b/games/libretro-snes9x2010/Makefile @@ -22,8 +22,16 @@ GH_TAGNAME= a3e65b8 PLIST_FILES= lib/libretro/snes9x2010_libretro.so +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 +MAKE_ENV= LTO= +.else +MAKE_ENV= LTO=-flto # may drop this branch on next port update +.endif + do-install: - ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro; - ${INSTALL_LIB} ${WRKSRC}/snes9x2010_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro; + @${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro + ${INSTALL_LIB} ${WRKSRC}/snes9x2010_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro -.include +.include