Rework privatelib/internallib
authorbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Aug 2014 22:17:26 +0000 (22:17 +0000)
committerbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Aug 2014 22:17:26 +0000 (22:17 +0000)
commit4ffcf3d3307728eb63185dc078e0afcd187264b6
tree55e479f80b3d04d5fd6accb8908787cccd17d895
parente8b079f701062926e0f9480bf52903b1fdac325b
Rework privatelib/internallib

Make sure everything linking to a privatelib and/or an internallib does it directly
from the OBJDIR rather than DESTDIR.
Add src.libnames.mk so bsd.libnames.mk is not polluted by libraries not existsing
in final installation
Introduce the LD* variable which is what ld(1) is expecting (via LDADD) to link to
internal/privatelib
Directly link to the .so in case of private library to avoid having to complexify
LDFLAGS.

Phabric: https://phabric.freebsd.org/D553
Reviewed by: imp, emaste

git-svn-id: svn://svn.freebsd.org/base/head@269648 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
34 files changed:
ObsoleteFiles.inc
gnu/usr.bin/gdb/Makefile.inc
gnu/usr.bin/gdb/gdb/Makefile
gnu/usr.bin/gdb/gdbtui/Makefile
gnu/usr.bin/gdb/kgdb/Makefile
kerberos5/lib/libkrb5/Makefile
kerberos5/libexec/digest-service/Makefile
kerberos5/libexec/kcm/Makefile
lib/libpam/modules/pam_ssh/Makefile
libexec/atf/atf-check/Makefile
libexec/atf/atf-sh/Makefile
secure/lib/libssh/Makefile
secure/libexec/sftp-server/Makefile
secure/libexec/ssh-keysign/Makefile
secure/libexec/ssh-pkcs11-helper/Makefile
secure/usr.bin/scp/Makefile
secure/usr.bin/sftp/Makefile
secure/usr.bin/ssh-add/Makefile
secure/usr.bin/ssh-agent/Makefile
secure/usr.bin/ssh-keygen/Makefile
secure/usr.bin/ssh-keyscan/Makefile
secure/usr.bin/ssh/Makefile
secure/usr.sbin/sshd/Makefile
share/mk/atf.test.mk
share/mk/bsd.lib.mk
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk [new file with mode: 0644]
usr.bin/drill/Makefile
usr.bin/host/Makefile
usr.sbin/pkg/Makefile
usr.sbin/unbound/anchor/Makefile
usr.sbin/unbound/checkconf/Makefile
usr.sbin/unbound/control/Makefile
usr.sbin/unbound/daemon/Makefile