[Zlib-devel] [PATCH] Makefile.in: removed call to ldconfig
Török Edwin
edwintorok at gmail.com
Fri Jul 23 15:28:08 EDT 2010
On Fri, 23 Jul 2010 15:21:00 -0400
Mike Frysinger <vapier at gentoo.org> wrote:
> On Friday, July 23, 2010 12:10:50 Enrico Weigelt wrote:
> > * Mike Frysinger schrieb:
> > > > Actually, I'd like to reduce complexity as much as possible, so
> > > > please, please no non-standard options/variables.
> > >
> > > DESTDIR is not non-standard in any way. do some research eh.
> >
> > But running certain additional commands on the live system when
> > DESTDIR is not set is not actually very standard ...
>
> but that isnt what you said
>
> > > in general you're wrong here (read the ldconfig manual),
> >
> > Why exactly ?
> >
> > ldconfig does fixups for the live system. they're target and distro
> > dependent.
>
> read all the possible options of ldconfig and then look at what it
> actually does in a tree of shared libs. it is not distro specific
> when the config files are not relevant, nor is the cache generation
> the only function it performs. ive seen a package or two use those
> extended functions. -mike
FWIW libtool runs ldconfig when installing the libraries, but does so
wrongly. It only works if you've installed the libraries in that place
before.
If it is the first time you are installing the libraries, you need to
manually run ldconfig.
I think this is because it uses ldconfig -n, which doesn't rebuild the
cache.
IMHO safest is to just run ldconfig with no params, zlib is doing just
that, so it is fine.
Best regards,
--Edwin
More information about the Zlib-devel
mailing list