git: a92961d7fda3 - main - games/flightgear: fix build with lld 15 on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Mar 2023 11:46:03 UTC
The branch main has been updated by martymac: URL: https://cgit.FreeBSD.org/ports/commit/?id=a92961d7fda3210aef4cff9e90d9bfb5a68754f1 commit a92961d7fda3210aef4cff9e90d9bfb5a68754f1 Author: Ganael LAPLANCHE <martymac@FreeBSD.org> AuthorDate: 2023-03-15 11:44:54 +0000 Commit: Ganael LAPLANCHE <martymac@FreeBSD.org> CommitDate: 2023-03-15 11:44:54 +0000 games/flightgear: fix build with lld 15 on i386 Disable dynamic relations checks on i386 (see also 145ca54 and 85d704c) --- games/flightgear/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/games/flightgear/Makefile b/games/flightgear/Makefile index bafb9d97211b..e14d1c011467 100644 --- a/games/flightgear/Makefile +++ b/games/flightgear/Makefile @@ -57,4 +57,10 @@ post-patch: # Avoid conflict with C++20 <version> - used version file is flightgear-version @${RM} ${WRKSRC}/version -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150 +LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations +.endif + +.include <bsd.port.post.mk>