summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-10-31 17:56:27 +0000
committerbrooks <brooks@FreeBSD.org>2013-10-31 17:56:27 +0000
commit5ed44e47ad17c901cd693cf1e9e67f073fae9bfa (patch)
tree7ea369ef8ed1b84ade59d49968279c133409b651 /gnu
parent7e2e9ae1af9f1eeef71d67a4beb036f54fdf9406 (diff)
downloadFreeBSD-src-5ed44e47ad17c901cd693cf1e9e67f073fae9bfa.zip
FreeBSD-src-5ed44e47ad17c901cd693cf1e9e67f073fae9bfa.tar.gz
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)
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile b/gnu/usr.bin/binutils/ld/Makefile
index ef19afa..926bac4 100644
--- a/gnu/usr.bin/binutils/ld/Makefile
+++ b/gnu/usr.bin/binutils/ld/Makefile
@@ -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
OpenPOWER on IntegriCloud