[Asterisk-code-review] BuildSystem: Invoke ldconfig with previous paths. (asterisk[master])

Alexander Traud asteriskteam at digium.com
Wed Jan 17 08:19:53 CST 2018


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/7999


Change subject: BuildSystem: Invoke ldconfig with previous paths.
......................................................................

BuildSystem: Invoke ldconfig with previous paths.

On OpenBSD, gmake uninstall{-all} registered only libraries from /usr/lib and
forgot those from /usr/local/lib.

ASTERISK-27595

Change-Id: I4aa2c0b5e07119d1a556f8ff6349eaf09e986888
---
M Makefile
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/99/7999/1

diff --git a/Makefile b/Makefile
index afd50c3..ffe5096 100644
--- a/Makefile
+++ b/Makefile
@@ -625,7 +625,7 @@
 ifneq ($(LDCONFIG),)
 ifeq ($(DESTDIR),)  # DESTDIR means binary archive creation; ldconfig should be run on postinst
 	@if [ $${EUID} -eq 0 ] ; then \
-		$(LDCONFIG) "$(ASTLIBDIR)/" ; \
+		$(LDCONFIG) -R "$(ASTLIBDIR)/" ; \
 	else \
 		echo " WARNING WARNING WARNING" ;\
 		echo "" ;\
@@ -969,7 +969,7 @@
 endif
 	$(MAKE) -C sounds uninstall
 ifneq ($(LDCONFIG),)
-	$(LDCONFIG) || :
+	$(LDCONFIG) -R || :
 endif
 
 uninstall: _uninstall

-- 
To view, visit https://gerrit.asterisk.org/7999
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4aa2c0b5e07119d1a556f8ff6349eaf09e986888
Gerrit-Change-Number: 7999
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180117/065c29aa/attachment.html>


More information about the asterisk-code-review mailing list