This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ldconfig is not needed with --disable-shared




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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]