summaryrefslogtreecommitdiff
path: root/utils/ldconfig.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-12-23 01:29:45 +0000
committerEric Andersen <andersen@codepoet.org>2004-12-23 01:29:45 +0000
commitb329886f6e4f55376e2a126fc371b2e5a7be1239 (patch)
treeef6f3271e2807f94fb8e177061d3153544eb3711 /utils/ldconfig.c
parentd3739512a3986650ae62022e3642bd4c47d24e20 (diff)
Fix thinko
Diffstat (limited to 'utils/ldconfig.c')
-rw-r--r--utils/ldconfig.c10
1 files changed, 8 insertions, 2 deletions
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;