Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2020 17:32:55 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r523822 - head/net-p2p/mldonkey
Message-ID:  <202001221732.00MHWtIV045416@repo.freebsd.org>

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



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