From b329886f6e4f55376e2a126fc371b2e5a7be1239 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 23 Dec 2004 01:29:45 +0000 Subject: Fix thinko --- utils/ldconfig.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/ldconfig.c b/utils/ldconfig.c index a7d36f75c..f3a8db909 100644 --- a/utils/ldconfig.c +++ b/utils/ldconfig.c @@ -92,11 +92,13 @@ int verbose = 0; /* verbose mode */ int libmode = 0; /* library mode */ int nolinks = 0; /* don't update links */ int nocache = 0; /* don't build cache */ -char *conffile = LDSO_CONF; /* default conf file */ -char *cachefile = LDSO_CACHE; /* default cache file */ void cache_print(void); void cache_write(void); void cache_dolib(const char *dir, const char *so, int libtype); +#ifdef __LDSO_CACHE_SUPPORT__ +char *conffile = LDSO_CONF; /* default conf file */ +char *cachefile = LDSO_CACHE; /* default cache file */ +#endif /* These two are used internally -- you shouldn't need to use them */ static void verror_msg(const char *s, va_list p) @@ -813,10 +815,14 @@ int main(int argc, char **argv) printcache = 1; /* print cache */ break; case 'f': +#ifdef __LDSO_CACHE_SUPPORT__ conffile = optarg; /* alternate conf file */ +#endif break; case 'C': +#ifdef __LDSO_CACHE_SUPPORT__ cachefile = optarg; /* alternate cache file */ +#endif break; case 'r': chroot_dir = optarg; -- cgit v1.2.3