git: b842770973b7 - main - games/libretro-snes9x2010: fix build
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Apr 23 15:05:29 UTC 2021
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b842770973b7a381cf5f2b596a6bf7da04be418b
commit b842770973b7a381cf5f2b596a6bf7da04be418b
Author: Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-04-23 13:25:50 +0000
Commit: Dmitry Marakasov <amdmi3 at 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>
More information about the dev-commits-ports-all
mailing list