svn commit: r523822 - head/net-p2p/mldonkey
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Jan 22 17:32:55 UTC 2020
Author: pkubaj
Date: Wed Jan 22 17:32:54 2020
New Revision: 523822
URL: https://svnweb.freebsd.org/changeset/ports/523822
Log:
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)
Modified:
head/net-p2p/mldonkey/Makefile
Modified: head/net-p2p/mldonkey/Makefile
==============================================================================
--- head/net-p2p/mldonkey/Makefile Wed Jan 22 17:27:00 2020 (r523821)
+++ head/net-p2p/mldonkey/Makefile Wed Jan 22 17:32:54 2020 (r523822)
@@ -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}|" \
More information about the svn-ports-all
mailing list