1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

games/trigger-rally: fix build with lld 15 on i386

ld: error: ../bin/trigger-rally:(.eh_frame+0xa40b): internal linker
error: wrote incorrect addend value 0x4A042E4A instead of 0x0 for
dynamic relocation R_386_32 at offset 0x429B53 against symbol
__gxx_personality_v0

PR:		269812
Reported by:	pkg-fallout
Approved by:	fernape
This commit is contained in:
Alfonso S. Siciliano 2023-03-01 18:39:38 +01:00
parent 18f3438184
commit ef0c6dcb3d
No known key found for this signature in database
GPG Key ID: 3F9EEFACFD371E37

View File

@ -34,6 +34,16 @@ PORTDOCS= README-stereo.txt README.txt DATA_AUTHORS.txt
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
# The following is actually meant for lld 15.0 and later, but the ports
# framework does not support LINKER_TYPE and LINKER_VERSION yet.
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
# Turn off checking of dynamic relocations, to avoid lld diagnostics about
# possibly incorrect addend values.
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/Trigger/main.cpp
@ -53,4 +63,4 @@ do-install:
${MV} ${STAGEDIR}${DATADIR}/icon/trigger-rally-icons.svg \
${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/trigger-rally-icons.svg
.include <bsd.port.mk>
.include <bsd.port.post.mk>