Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Mar 2018 17:45:30 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465725 - head/lang/myrddin
Message-ID:  <201803271745.w2RHjUHI070331@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Mar 27 17:45:30 2018
New Revision: 465725
URL: https://svnweb.freebsd.org/changeset/ports/465725

Log:
  lang/myrddin: Fix build when ld is ld.lld
  
  ld: error: <internal>: section sh_addralign is not a power of 2
  
  Myrddin's build system directly calls ld so LLD_UNSAFE can't work
  here.  Workaround the issue by adding a binary alias to ld.bfd to fix
  the build for now.
  
  PR:		226986
  Reported by:	emaste

Modified:
  head/lang/myrddin/Makefile

Modified: head/lang/myrddin/Makefile
==============================================================================
--- head/lang/myrddin/Makefile	Tue Mar 27 17:40:06 2018	(r465724)
+++ head/lang/myrddin/Makefile	Tue Mar 27 17:45:30 2018	(r465725)
@@ -17,8 +17,12 @@ USES=	gmake
 
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	--prefix "${PREFIX}"
-WRKSRC=	${WRKDIR}/mc
 TEST_TARGET=	check
+WRKSRC=	${WRKDIR}/mc
+
+# Myrddin is LLD_UNSAFE:
+# ld: error: <internal>: section sh_addralign is not a power of 2
+BINARY_ALIAS=	ld=ld.bfd
 
 OPTIONS_DEFINE=	DEBUG VIM
 OPTIONS_DEFAULT=	VIM



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