[uClibc] ldconfig without LDSO_CACHE_SUPPORT
Peter Kjellerstedt
peter.kjellerstedt at axis.com
Tue Oct 12 06:10:05 UTC 2004
Should ldconfig be built at all if cache support is disabled?
//Peter
> -----Original Message-----
> From: uclibc-bounces at uclibc.org
> [mailto:uclibc-bounces at uclibc.org] On Behalf Of Mark Rakes
> Sent: Tuesday, October 12, 2004 07:06
> To: uclibc at uclibc.org
> Subject: [uClibc] ldconfig without LDSO_CACHE_SUPPORT
>
> without LDSO_CACHE_SUPPORT turned on, LDSO_CONF and LDSO_CACHE are
> not defined anywhere, but still used by ldconfig.c This patch allows
> ldconfig to build again, although there may be a cleaner way to fix
> this????
>
> -mark
>
> diff -purN -x CVS uClibc/ldso/include/dl-defs.h
> uClibc.new/ldso/include/dl-defs.h
> --- uClibc/ldso/include/dl-defs.h 2004-10-06
> 00:34:14.000000000 -0700
> +++ uClibc.new/ldso/include/dl-defs.h 2004-10-11 18:28:12.000000000
> -0700
> @@ -39,6 +39,10 @@ typedef struct {
> } libentry_t;
> #endif /* __LDSO_CACHE_SUPPORT__ */
>
> -#endif
> +#else
> +/* NB: ldconfig still uses these values */
> +#define LDSO_CONF "/etc/ld.so.conf"
> +#define LDSO_CACHE "/etc/ld.so.cache"
> +#endif /* __LDSO_PRELOAD_FILE_SUPPORT__ || __LDSO_CACHE_SUPPORT__ */
>
> #endif /* _LD_DEFS_H */
>
>
More information about the uClibc
mailing list