Skip to content

Commit

Permalink
Merge pull request #90 from tpetazzoni/allow-ldconfig-override
Browse files Browse the repository at this point in the history
Makefile: allow to override the ldconfig command
  • Loading branch information
jordansissel committed May 12, 2016
2 parents d445e23 + b49b2f8 commit 5432498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ INSTALLBIN?=$(PREFIX)/bin
INSTALLLIB?=$(PREFIX)/lib
INSTALLMAN?=$(PREFIX)/man
INSTALLINCLUDE?=$(PREFIX)/include
LDCONFIG?=ldconfig

DPREFIX=$(DESTDIR)$(PREFIX)
DINSTALLBIN=$(DESTDIR)$(INSTALLBIN)
Expand Down Expand Up @@ -77,7 +78,7 @@ pre-install:
post-install:
@if [ "$$(uname)" = "Linux" ] ; then \
echo "Running ldconfig to update library cache"; \
ldconfig \
$(LDCONFIG) \
|| echo "Failed running 'ldconfig'. Maybe you need to be root?"; \
fi

Expand Down

0 comments on commit 5432498

Please sign in to comment.