freebsd-skq/share/mk
bdrewery 9240f72512 Partially revert r266227 and stop stripping paths in ldscripts.
Specifically this fixes /usr/lib/libc.so stripping the paths to the
libraries.  The reason for this in r266227 was both likely because ld(1) did
not fully respect --sysroot until r291226 and because of the lib32
build.  The lib32 build does not use --sysroot into the /usr/lib32 path,
rather it only uses -L and -B into the /usr/lib32 path and --sysroot
into the normal (64bit) /usr/lib.  The _LDSCRIPTROOT was added with
the ldscript support in bsd.lib.mk so that it builds a 32-bit-sysrooted pathed
ldscript in the object directory and then installs a normal unprefixed
version in installworld.  This commit also fixes the rebuild during
install which was broken in r266227.  This commit would break DIRDEPS_BUILD
build of lib32 but it does not currently have a way to build it anyhow.

For example, before this change we had in /usr/lib/libc.so:
  GROUP ( libc.so.7 libc_nonshared.a libssp_nonshared.a )
Now it is restored to pre-r266227:
  GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a /usr/lib/libssp_nonshared.a )

The motivation for this is in testing of lld.
From emaste:
  lld does not have built-in search paths (e.g. /lib, /usr/lib) and relies on
  -L arguments passed by the caller.  As the linker is nearly always invoked
  from the clang driver this is fine other than the fact that /usr/lib/libc.so
  is an ldscript that refers to libc.so.7 which is in /lib, not /usr/lib.

PR:		207980
Reported by:	emaste
Submitted by:	emaste (based on)
Differential Revision:	https://reviews.freebsd.org/D5637
2016-03-15 22:27:29 +00:00
..
atf.test.mk Remove unused atf.test.mk variables 2015-12-06 07:30:18 +00:00
auto.obj.mk Import latest auto.obj.mk 1.12 from contrib/bmake/mk. 2016-01-25 18:16:41 +00:00
bsd.arch.inc.mk
bsd.clang-analyze.mk Import bsd.clang-analyze.mk based on NetBSD's version. 2016-02-26 22:14:00 +00:00
bsd.compiler.mk CCACHE_BUILD+META_MODE: Lookup and canonicalize the default CCACHE_DIR. 2016-03-01 22:25:54 +00:00
bsd.confs.mk These group names may be used as a cookie, so replace any non-fs-safe characters. 2016-03-09 22:45:00 +00:00
bsd.cpu.mk Start support for the RISC-V 64-bit architecture developed by UC Berkeley. 2015-12-11 22:55:23 +00:00
bsd.crunchgen.mk DIRDEPS_BUILD: Fix some things building in MAKELEVEL0. 2016-02-26 22:13:48 +00:00
bsd.dep.mk FAST_DEPEND: Use .dinclude to enable full .depend logic in bmake. 2016-03-11 04:09:56 +00:00
bsd.doc.mk DIRDEPS_BUILD: Fix some things building in MAKELEVEL0. 2016-02-26 22:13:48 +00:00
bsd.dtb.mk Add infrastructure to build dtb files from dts files. 2015-01-08 18:28:06 +00:00
bsd.endian.mk Start support for the RISC-V 64-bit architecture developed by UC Berkeley. 2015-12-11 22:55:23 +00:00
bsd.files.mk Remove out-of-place make(buildincludes) check. 2016-03-11 23:44:59 +00:00
bsd.incs.mk These group names may be used as a cookie, so replace any non-fs-safe characters. 2016-03-09 22:45:00 +00:00
bsd.info.mk DIRDEPS_BUILD: Fix some things building in MAKELEVEL0. 2016-02-26 22:13:48 +00:00
bsd.init.mk Consolidate common beforebuild logic. 2016-02-16 02:09:48 +00:00
bsd.kmod.mk Eliminate bsd.sys.mk on purpose. Do not put it back. 2015-01-01 04:26:45 +00:00
bsd.lib.mk Partially revert r266227 and stop stripping paths in ldscripts. 2016-03-15 22:27:29 +00:00
bsd.libnames.mk Move casper library entries to proper places. 2016-03-03 06:22:51 +00:00
bsd.links.mk Fix style and remove excess / for installing SYMLINKS. 2016-02-04 01:08:51 +00:00
bsd.man.mk Remove _manpages and _maninstall targets as they are no longer needed. 2016-02-26 22:13:31 +00:00
bsd.mkopt.mk Appy := to dependent opts once value determined. 2015-06-22 19:01:09 +00:00
bsd.nls.mk Don't let NLSLINKS contain itself. 2016-02-03 23:37:14 +00:00
bsd.obj.mk Consolidate common beforebuild logic. 2016-02-16 02:09:48 +00:00
bsd.opts.mk Enable FAST_DEPEND by default. 2016-03-11 16:57:41 +00:00
bsd.own.mk Fix build without FAST_DEPEND and without running 'make depend' after r295985. 2016-02-25 20:02:42 +00:00
bsd.port.mk Avoid sub-shell for realpath(1) for bmake by using its built-in :tA. 2015-09-03 17:01:58 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk Avoid sub-shell for realpath(1) for bmake by using its built-in :tA. 2015-09-03 17:01:58 +00:00
bsd.prog.mk DEBUG_FILES: Create the DEBUGFILEDIR if it doesn't exist on install. 2016-03-03 18:08:58 +00:00
bsd.progs.mk DIRDEPS_BUILD+PROGS: Fix staging not respecting (BINDIR|PROGNAME)[._]${PROG}. 2016-03-09 03:22:20 +00:00
bsd.README Simplify running the FreeBSD test suite 2016-02-07 18:40:04 +00:00
bsd.snmpmod.mk Allow overriding FILESDIRs for snmp files. 2015-12-14 22:42:05 +00:00
bsd.stand.mk Use CFLAGS_NO_SIMD in preference to varying lists of -mno-xxxx flags. 2015-08-27 23:46:42 +00:00
bsd.subdir.mk Don't even define or append subdir targets with NO_SUBDIR. 2016-03-11 23:45:39 +00:00
bsd.symver.mk
bsd.sys.mk Partially revert r266227 and stop stripping paths in ldscripts. 2016-03-15 22:27:29 +00:00
bsd.test.mk Remove things set already by bsd.progs.mk. 2016-03-09 03:22:17 +00:00
dirdeps.mk Merge bmake-20160307 2016-03-11 01:35:39 +00:00
gendirdeps.mk Merge bmake-20160307 2016-03-11 01:35:39 +00:00
host-target.mk Import latest host-target.mk 1.11 from contrib/bmake/mk 2016-01-25 18:43:21 +00:00
install-new.mk DIRDEPS_BUILD: Install new Makefile.depend files atomically. 2015-12-04 03:17:07 +00:00
local.autodep.mk Revert r288966 as it is redundant and not right. 2015-12-03 22:39:42 +00:00
local.dirdeps.mk DIRDEPS_BUILD: Let PROGS bootstrapping work. 2016-03-09 22:44:48 +00:00
local.gendirdeps.mk META MODE: Don't trim out lib/clang/include dependency. 2015-12-01 05:18:55 +00:00
local.init.mk Define .MAKE.MODE to normal to avoid the need for :U later. 2016-01-19 22:41:44 +00:00
local.meta.sys.mk DIRDEPS_BUILD: Add a sure way to prohibit building 'all' during dirdeps phase. 2016-03-11 23:45:23 +00:00
local.sys.env.mk Move include of make.conf back to its old position. 2015-06-19 14:56:24 +00:00
local.sys.mk Follow-up r296700: Fix incorrectly declaring these as .MAIN. 2016-03-13 20:51:45 +00:00
Makefile Import bsd.clang-analyze.mk based on NetBSD's version. 2016-02-26 22:14:00 +00:00
meta2deps.py Add META_MODE support. 2015-06-13 19:20:56 +00:00
meta2deps.sh Fix meta2deps.sh tracking of dependencies inside .CURDIR. 2016-03-02 20:06:24 +00:00
meta.autodep.mk Merge bmake-20160307 2016-03-11 01:35:39 +00:00
meta.stage.mk Merge bmake-20160307 2016-03-11 01:35:39 +00:00
meta.subdir.mk Import latest meta.subdir.mk 1.11 from contrib/bmake/mk 2016-01-25 18:34:15 +00:00
meta.sys.mk Merge bmake-20160307 2016-03-11 01:35:39 +00:00
netbsd-tests.test.mk Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
plain.test.mk As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when 2014-11-04 01:57:31 +00:00
src.init.mk The 'buildenv' target can safely be ran with '+'. 2015-11-06 21:49:17 +00:00
src.libnames.mk Fix over/under-linking in contrib/ofed. 2016-03-04 22:37:09 +00:00
src.opts.mk Install elftoolchain elfcopy(1) as objcopy(1) by default 2016-02-26 15:46:14 +00:00
src.sys.env.mk RELDIR is useful without META_MODE. Always define it. 2015-09-23 23:30:57 +00:00
src.sys.mk Only include src.conf if _WITHOUT_SRCCONF not defined. 2015-12-01 20:56:16 +00:00
stage-install.sh Add META_MODE support. 2015-06-13 19:20:56 +00:00
suite.test.mk Simplify running the FreeBSD test suite 2016-02-07 18:40:04 +00:00
sys.dependfile.mk Merge bmake-20160307 2016-03-11 01:35:39 +00:00
sys.mk META_MODE: Default to the silent build. 2016-02-26 22:13:56 +00:00
tap.test.mk - Use LOCALBASE instead of KYUA_PREFIX for the --prefix to kyua(1) 2015-12-20 06:26:15 +00:00
version_gen.awk