Home | History | Annotate | Download | only in mk
History log of /src/share/mk/bsd.shlib.mk
RevisionDateAuthorComments
 1.8  23-Aug-2012  joerg Revert last, it breaks the tricks xsrc uses.
 1.7  23-Aug-2012  joerg Remove SHLIBINSTALLDIR and SHLINKINSTALLLIBDIR. Add rpath entries, if
SHLIBDIR differs from /usr/lib.
 1.6  29-Aug-2007  hira Use /libexec/ld.elf_so instead of /usr/libexec/ld.elf_so for the
programs which are located in /libexec.
 1.5  11-Nov-2006  jmmv branches: 1.5.2; 1.5.4; 1.5.8;
Also use libraries from /lib for binaries installed into /libexec. Needed
by lfs_cleanerd which is about to be moved to this directory.
 1.4  12-Mar-2005  lukem Also set SHLIBDIR to /lib if ${USE_SHLIBDIR} != "no".

This allows <bsd.lib.mk> to correctly set the RPATH of libraries that
use USE_SHLIBDIR=yes to /lib, so that dependent libraries can be found
from /lib when /usr/lib isn't mounted yet.
This was the intention of the _LIBLDOPTS support in <bsd.lib.mk>.

Fixes problem reported by Dan Carosone with when /sbin/cgdconfig is
dynamically linked against libcrypto.so but not libcrypt.so (it was
relying upon libcrypto.so to pull in libcrypt.so).
 1.3  02-Jan-2004  lukem Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.
 1.2  28-Jul-2003  lukem Be consistent how "multiple include protection" is implemented. I.e,

.if !defined(_BSD_foo_MK_)
_BSD_foo_MK_=1

# ...

.endif # !defined(_BSD_foo_MK_)
 1.1  27-Sep-2002  thorpej Only use the MKDYNAMICROOT semantics (i.e. -rpath=/lib,/usr/lib and
-dynamic-linker=/libexec/ld.elf_so) if the BINDIR of the program being
built is /bin or /sbin.

The reason we do this is because now all programs *except* those in
/bin and /sbin (i.e. the "special cases") match the default the compiler
uses, which is what is used for things in e.g. xsrc, pkgsrc, and other
random 3rd party programs.

This is done by decoupling where a shlib is installed from how it
is located. Two new variables, SHLIBINSTALLDIR and SHLINKINSTALLDIR,
contain the former information, and key off MKDYNAMICROOT only. SHLIBDIR
and SHLINKDIR contain the latter, and key off MKDYNAMICROOT and BINDIR.

The SHLIBINSTALLDIR, SHLIBDIR, _LIBSODIR, SHLINKINSTALLDIR, and
SHLINKDIR parameters are moved to a new <bsd.shlib.mk>; see bsd.README
for usage details.
 1.5.8.1  06-Nov-2007  matt sync with HEAD
 1.5.4.1  03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.5.2.1  31-Aug-2007  liamjfoy Pull up following revision(s) (requested by hira in ticket #852):
share/mk/bsd.shlib.mk: revision 1.6
Use /libexec/ld.elf_so instead of /usr/libexec/ld.elf_so for the
programs which are located in /libexec.

RSS XML Feed