Skip to content

Commit

Permalink
games/assaultcube: Fix link on 14-CURRENT i386
Browse files Browse the repository at this point in the history
Fix build on 14-CURRENT i386 by disabling dynamic relocation checks with
lld 15.

PR:		272049
See also:	145ca54
  • Loading branch information
Partmedia authored and clausecker committed Jun 26, 2023
1 parent 2489764 commit 658a65e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions games/assaultcube/Makefile
Expand Up @@ -18,7 +18,7 @@ LICENSE_PERMS_ACUBE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_CUBE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_OTHER= dist-mirror pkg-mirror auto-accept

USES= gmake tar:bzip2
USES= compiler:c++11-lang gmake tar:bzip2

USE_GITHUB= yes
GH_ACCOUNT= assaultcube
Expand All @@ -41,7 +41,7 @@ DEDICATED_DESC= Build dedicated server

CLIENT_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
libcurl.so:ftp/curl
CLIENT_USES= compiler:c++11-lang desktop-file-utils gettext-runtime gl openal:al sdl \
CLIENT_USES= desktop-file-utils gettext-runtime gl openal:al sdl \
xorg
CLIENT_USE= GL=gl SDL=sdl2,image2 XORG=x11
CLIENT_ALL_TARGET= client
Expand All @@ -57,6 +57,12 @@ DEDICATED_PLIST_FILES= bin/${PORTNAME}_server libexec/${PORTNAME}_server
#MASTER_ALL_TARGET= master
#MASTER_PLIST_FILES= bin/${PORTNAME}_master libexec/${PORTNAME}_master

.include <bsd.port.pre.mk>

.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
LDFLAGS_i386+=--no-check-dynamic-relocations
.endif

post-patch: .SILENT
${REINPLACE_CMD} -e '/^CXXFLAGS=/d ; /^CXX=/d ; /^CLIENT_PCH/d ; \
/^INCLUDES=/s|$$| -I$$(LOCALBASE)/include| ; \
Expand All @@ -81,4 +87,4 @@ post-install-${f:S|server|DEDICATED|:tu}-on:
${STAGEDIR}${PREFIX}/libexec/${PORTNAME}_${f}
.endfor

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 658a65e

Please sign in to comment.