From d0b20036ad2075c48f5901329c3ce0dfa3afbfbf Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Wed, 13 Apr 2016 06:41:56 +0000 Subject: Switch the cloudabi-toolchain port over to llvm-devel. Farnsworth: "Good news, everyone!" The latest revisions of LLVM trunk not only have a version of LLD that creates usable binaries for x86-64 and aarch64, it also does a better job at creating Position Independent Executables than the GNU linker. Because PIE is going to become pretty important for some of the upcoming projects (emulation on other OSes), I'd like to go ahead and switch the cloudabi-toolchain port over to the latest snapshot of LLVM. My goal is to revert back to a stable version (3.9) when available. Switching to LLD involves patching up the Binutils ports to no longer install the GNU linker (and remove the linker scripts that it uses). We can then simply add a couple of extra symlinks to cloudabi-toolchain to point to the LLD binary. At the same time, let's switch over to using the ELF toolchain tools on FreeBSD 11. That way we can even drop the dependency on Binutils on those systems. Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D5874 --- devel/binutils/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'devel/binutils') diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index 6781e6252100..0a1a548425d2 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -4,7 +4,7 @@ PORTNAME= binutils PORTVERSION= 2.25.1 PORTEPOCH= 1 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= devel MASTER_SITES= SOURCEWARE/binutils/releases @@ -89,5 +89,8 @@ post-install: ${STAGEDIR}${PREFIX}/man/man1/${BUTARGET}-${tool}.1 \ ${STAGEDIR}${PREFIX}/${BUTARGET}/bin/${tool} .endfor +.if ${BUREMOVE:Mld} + @${RM} -rf ${STAGEDIR}${PREFIX}/${BUTARGET}/lib/ldscripts +.endif .include -- cgit v1.2.3