svn commit: r257459 - stable/10/gnu/usr.bin/binutils/ld
Brooks Davis
brooks at FreeBSD.org
Thu Oct 31 17:56:27 UTC 2013
Author: brooks
Date: Thu Oct 31 17:56:27 2013
New Revision: 257459
URL: http://svnweb.freebsd.org/changeset/base/257459
Log:
MFC r257268:
Enable the --sysroot=/foo option in ld by always building with a sysroot
defined. When not building as a cross linker, the sysroot is set to "/".
Exp-run by: bdrewery (ports/183206)
Approved by: re (gjb)
Modified:
stable/10/gnu/usr.bin/binutils/ld/Makefile
Directory Properties:
stable/10/gnu/usr.bin/binutils/ (props changed)
Modified: stable/10/gnu/usr.bin/binutils/ld/Makefile
==============================================================================
--- stable/10/gnu/usr.bin/binutils/ld/Makefile Thu Oct 31 17:33:29 2013 (r257458)
+++ stable/10/gnu/usr.bin/binutils/ld/Makefile Thu Oct 31 17:56:27 2013 (r257459)
@@ -31,7 +31,7 @@ CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
-CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX}\"
+CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX:U/}\"
CFLAGS+= -DTOOLBINDIR=\"${TOOLS_PREFIX}/${BINDIR}/libexec\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
More information about the svn-src-stable-10
mailing list