Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2023 11:46:03 GMT
From:      Ganael LAPLANCHE <martymac@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a92961d7fda3 - main - games/flightgear: fix build with lld 15 on i386
Message-ID:  <202303151146.32FBk3oP065246@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303151146.32FBk3oP065246>