git: eb03ce1bb33d - 2021Q2 - games/libretro-snes9x2010: fix build
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat May 1 10:24:38 UTC 2021
The branch 2021Q2 has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=eb03ce1bb33d7819d372999512fb79046cc79bee
commit eb03ce1bb33d7819d372999512fb79046cc79bee
Author: Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-04-23 13:25:50 +0000
Commit: Dmitry Marakasov <amdmi3 at FreeBSD.org>
CommitDate: 2021-05-01 10:23:17 +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
(cherry picked from commit b842770973b7a381cf5f2b596a6bf7da04be418b)
---
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 18ec9ac9df93..9e914b402a2a 100644
--- a/games/libretro-snes9x2010/Makefile
+++ b/games/libretro-snes9x2010/Makefile
@@ -23,8 +23,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