Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2021 15:05:28 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b842770973b7 - main - games/libretro-snes9x2010: fix build
Message-ID:  <202104231505.13NF5SIu019978@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b842770973b7a381cf5f2b596a6bf7da04be418b

commit b842770973b7a381cf5f2b596a6bf7da04be418b
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-04-23 13:25:50 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>



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