ldconfig is not needed with --disable-shared
Andreas Jaeger
aj@suse.de
Wed Jun 7 05:23:00 GMT 2000
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
More information about the Libc-alpha
mailing list