unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] Makefile: Do not call ldconfig when DESTDIR is defined
@ 2010-10-22  6:01 Michal Sojka
  0 siblings, 0 replies; only message in thread
From: Michal Sojka @ 2010-10-22  6:01 UTC (permalink / raw)
  To: notmuch

If make install is called with non-empty DESTDIR, calling ldconfig has
usually no sense. Without this patch dpkg-buildpackage fails with

  make[1]: ldconfig: Command not found

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
---
This patch first appeared in id:87ljaf6p51.fsf@steelpick.2x.cz

 lib/Makefile.local |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/Makefile.local b/lib/Makefile.local
index a60ef98..2d36db1 100644
--- a/lib/Makefile.local
+++ b/lib/Makefile.local
@@ -36,9 +36,11 @@ SONAME = $(LINKER_NAME).$(LIBNOTMUCH_VERSION_MAJOR)
 LIBNAME = $(SONAME).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE)
 LIBRARY_LINK_FLAG = -shared -Wl,-soname=$(SONAME)
 ifeq ($(LIBDIR_IN_LDCONFIG),1)
+ifeq ($(DESTDIR),)
 LIBRARY_INSTALL_POST_COMMAND=ldconfig
 endif
 endif
+endif
 
 dir := lib
 extra_cflags += -I$(dir) -fPIC
-- 
tg: (f117d80..) t/fix-ldconfig-for-deb (depends on: master)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-22  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-22  6:01 [PATCH] Makefile: Do not call ldconfig when DESTDIR is defined Michal Sojka

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).