This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
ldconfig is not needed with --disable-shared
- To: libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>
- Subject: ldconfig is not needed with --disable-shared
- From: Andreas Jaeger <aj at suse dot de>
- Date: 07 Jun 2000 12:34:21 +0200
- Cc: Alan Modra <alan at linuxcare dot com dot au>
Alan reported a problem to me about ldconfig not building when no
shared libraries are build (configure --disable-shared). The problem
is that in this case gnu/lib-names.h is not build - and it's needed
for readelf.c. Since we don't need ldconfig when we don't have shared
libs, I've decided not to build ldconfig at all in this case.
I'll commit later the appended patch to fix the problem.
Andreas
2000-06-07 Andreas Jaeger <aj@suse.de>
* elf/Makefile: Build ldconfig only when building shared
libraries.
============================================================
Index: elf/Makefile
--- elf/Makefile 2000/05/30 20:33:28 1.151
+++ elf/Makefile 2000/06/07 10:02:29
@@ -67,6 +67,7 @@
install-rootsbin = sln
ifeq (yes,$(use-ldconfig))
+ifeq (yes,$(build-shared))
others-static += ldconfig
others += ldconfig
install-rootsbin += ldconfig
@@ -77,6 +78,7 @@
# To find xmalloc.c and xstrdup.c
vpath %.c ../locale/programs
+endif
endif
ifeq (yes,$(build-shared))
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de