Rework privatelib/internallib
authorbapt <bapt@FreeBSD.org>
Wed, 6 Aug 2014 22:17:26 +0000 (22:17 +0000)
committerbapt <bapt@FreeBSD.org>
Wed, 6 Aug 2014 22:17:26 +0000 (22:17 +0000)
commit8a9380f42cca5e897a1ccdfa1d7a4d0e624e4864
tree55e479f80b3d04d5fd6accb8908787cccd17d895
parent8b0ef17c97fe79b895e87452fef5f810ade727fd
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
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