libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why is ldconfig needed after installation


From: Peter Johansson
Subject: Re: why is ldconfig needed after installation
Date: Mon, 26 May 2014 17:07:10 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12

On 05/26/2014 11:07 AM, Russ Allbery wrote:
ldconfig has to be run because the dynamic linker maintains a cache of
available libraries that has to be updated.  libtool does this when run
with libtool --mode=finish on the installation directory.  I'm not sure if
it does this when it thinks the directory isn't listed in the system
library search path, though.
Hm, there is nothing in my 'Makefile.in' that mentions --mode=finish. Is there any reason for that or is it a automake bug?


install-libLTLIBRARIES: $(lib_LTLIBRARIES)
    @$(NORMAL_INSTALL)
    @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
    list2=; for p in $$list; do \
      if test -f $$p; then \
        list2="$$list2 $$p"; \
      else :; fi; \
    done; \
    test -z "$$list2" || { \
      echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
      $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
    }


Cheers,

--
Peter Johansson




reply via email to

[Prev in Thread] Current Thread [Next in Thread]