aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-01-22 17:32:54 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-01-22 17:32:54 +0000
commitfdaa50f4815b91bdf9d8c65ecf4765f9c97a43d9 (patch)
treee45880bb31b9e4ac8898380a4eaa652b3e19b8d6
parente6cfac4836029959ea34b8a965f3ad10fb6367de (diff)
downloadports-fdaa50f4815b91bdf9d8c65ecf4765f9c97a43d9.tar.gz
ports-fdaa50f4815b91bdf9d8c65ecf4765f9c97a43d9.zip
net-p2p/mldonkey: fix build on powerpc64 elfv2
Clang can't build this port on powerpc64: ld: error: build/client.a(commonShared.o):(function camlCommonShared__ni_2211: .text+0xCE): relocation R_PPC64_TOC16_DS out of range: 121936 is not in [-32768, 32767] ld: error: build/core.a(donkeyOptions.o):(function camlDonkeyOptions__max_allowed_connected_servers_1641: .text+0x1A): relocation R_PPC64_TOC16_DS out of range: 69120 is not in [-32768, 32767] ld: error: build/cdk.a(http_lexer.o):(function camlHttp_lexer__get_args_1205: .text+0x12): relocation R_PPC64_TOC16_DS out of range: 203032 is not in [-32768, 32767] PR: 243221 Approved by: danfe (maintainer)
Notes
Notes: svn path=/head/; revision=523822
-rw-r--r--net-p2p/mldonkey/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/net-p2p/mldonkey/Makefile b/net-p2p/mldonkey/Makefile
index 9a4542d789a4..1820f7ae1199 100644
--- a/net-p2p/mldonkey/Makefile
+++ b/net-p2p/mldonkey/Makefile
@@ -95,6 +95,10 @@ ALL_TARGET+= \
.include <bsd.port.pre.mk>
+.if ${ARCH} == powerpc64
+USE_GCC= yes
+.endif
+
post-patch:
@${SED} \
-e "s|%%PREFIX%%|${PREFIX}|" \