ports/183206: [exp-run] Enable --sysroot=/foo in /usr/bin/ld
Brooks Davis
brooks at FreeBSD.org
Tue Oct 22 16:20:00 UTC 2013
>Number: 183206
>Category: ports
>Synopsis: [exp-run] Enable --sysroot=/foo in /usr/bin/ld
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Oct 22 16:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Brooks Davis
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r255453: Mon Sep 16 12:43:32 UTC 2013 root at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64
>Description:
I'd like to commit the following patch to HEAD and MFC to 10 which
enables the --sysroot=/foo option to ld. This will allow the
installed linker to be used in cross compilation. It should just
work, but it's quite possible that ports exist that probe for
--sysroot in their configure script and will break as a result.
>How-To-Repeat:
>Fix:
Index: gnu/usr.bin/binutils/ld/Makefile
===================================================================
--- gnu/usr.bin/binutils/ld/Makefile (revision 256912)
+++ gnu/usr.bin/binutils/ld/Makefile (working copy)
@@ -31,7 +31,7 @@
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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list