freebsd-dev/gnu/usr.bin/binutils
Bryan Drewery 8b2b71b415 Fix ld not respecting --sysroot.
ld(1) uses the /usr/libdata/ldscripts when linking. These scripts add in the
default search paths of /lib and /usr/lib via 'SEARCH_DIR("DIR")'. These
need to be prefixed by '=' so that the --sysroot flag is respected. This
is not a problem with buildworld since the TOOLS_PREFIX is baked into the
cross-ld. However it is a problem when trying to use ld(1) with --sysroot
anywhere else as it ends up still reading /lib and /usr/lib despite --sysroot.

The default --sysroot (TARGET_SYSTEM_ROOT) is '/' for /usr/bin/ld.

I found this while building with META MODE with uses only --sysroot with
/usr/bin/ld, and found that libraries that I had not built in its sysroot
directory were leaking in. This didn't happen with ports binutils either.  This
would also impact external compiler support.

Reviewed by:	bapt, brooks
MFC after:	2 weeks
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D4262
2015-11-24 00:49:29 +00:00
..
as new depends 2015-06-16 23:37:19 +00:00
doc Add META_MODE support. 2015-06-13 19:20:56 +00:00
ld Fix ld not respecting --sysroot. 2015-11-24 00:49:29 +00:00
libbfd Add missing CLEANFILES. 2015-09-24 23:15:24 +00:00
libbinutils new depends 2015-06-16 23:37:19 +00:00
libiberty Add META_MODE support. 2015-06-13 19:20:56 +00:00
libopcodes Add META_MODE support. 2015-06-13 19:20:56 +00:00
objcopy Add META_MODE support. 2015-06-13 19:20:56 +00:00
objdump Add META_MODE support. 2015-06-13 19:20:56 +00:00
Makefile Remove .WAIT hacks and put in specific dependencies. 2015-08-28 16:23:03 +00:00
Makefile.inc Remove another reference to alpha... 2010-02-03 02:39:08 +00:00
Makefile.inc0 Add a new ARM TARGET_ARCH, armv6hf. This is considered experimental. 2014-03-23 12:49:25 +00:00
update.sh