summaryrefslogtreecommitdiffstats
path: root/sbin/ldconfig/Makefile
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-09-05 03:31:00 +0000
committerjdp <jdp@FreeBSD.org>1998-09-05 03:31:00 +0000
commit6c76bd6d548ca5eba7c437f4e56c952e1e9381c2 (patch)
treedab184fa80fe4435136d04ef1e0a049ea999352d /sbin/ldconfig/Makefile
parentbd08049a9520d9d91e43c864ebbb2e4788219331 (diff)
downloadFreeBSD-src-6c76bd6d548ca5eba7c437f4e56c952e1e9381c2.zip
FreeBSD-src-6c76bd6d548ca5eba7c437f4e56c952e1e9381c2.tar.gz
Implement ldconfig functionality for ELF. The hints are stored in
a different file than the a.out hints, namely, "/var/run/ld-elf.so.hints". These hints consist only of the directory search path. There is no hash table as in the a.out hints, because ELF doesn't have to search for the file with the highest minor version number. (It doesn't have minor version numbers at all.) A single run of ldconfig updates either the a.out hints or the ELF hints, but not both. The set of hints to process is selected in the usual way, via /etc/objformat, or ${OBJFORMAT}, or the "-aout" or "-elf" command line option. The rationale is that you probably want to search different directories for ELF than for a.out. "ldconfig -r" is faked up to produce output like we are used to, except that for ELF there are no minor version numbers. This should enable "ldconfig -r" to be used for checking LIB_DEPENDS in ports even for ELF. I implemented the ELF functionality in a new source file, with an eye toward eliminating the a.out code entirely at some point in the future.
Diffstat (limited to 'sbin/ldconfig/Makefile')
-rw-r--r--sbin/ldconfig/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ldconfig/Makefile b/sbin/ldconfig/Makefile
index 840fd7f..f902e92 100644
--- a/sbin/ldconfig/Makefile
+++ b/sbin/ldconfig/Makefile
@@ -1,7 +1,7 @@
-# $Id: Makefile,v 1.12 1998/06/01 13:58:19 peter Exp $
+# $Id: Makefile,v 1.13 1998/06/12 10:43:18 peter Exp $
PROG= ldconfig
-SRCS= ldconfig.c shlib.c support.c
+SRCS= elfhints.c ldconfig.c shlib.c support.c
LDDIR?= ${.CURDIR}/../../libexec/rtld-aout
CFLAGS+=-I${LDDIR} -DFREEBSD_AOUT
MAN8= ldconfig.8
OpenPOWER on IntegriCloud