Fix for lack of LTO with ld.bfd from Brad Smith

Fixes the build for sparc64
This commit is contained in:
kmos
2026-03-22 00:15:50 +00:00
parent 9f572a627a
commit c756e95a5b
+5 -2
View File
@@ -1,5 +1,3 @@
BROKEN-sparc64 = CMake Error:Link Time Optimization requested, not available
COMMENT = modern QuakeWorld client
CATEGORIES = games
@@ -38,6 +36,11 @@ NO_TEST = Yes
GAMEDIR = ${PREFIX}/share/ezquake
SUBST_VARS += GAMEDIR
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mlld}
CONFIGURE_ARGS+=-DENABLE_LTO=Off
.endif
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/EX_browser_sources.c