diff options
author | Joshua Colp <jcolp@digium.com> | 2017-02-21 14:54:47 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-02-21 14:54:47 -0600 |
commit | 90f661303362493ae92a26663635b1572630932b (patch) | |
tree | 490b66db3e047ec74645aeb9b86fb2f63b502b83 | |
parent | f29ea24d9f1d5771f7a5fe2f0bae51c4bf9a657a (diff) | |
parent | d90430953c508670a67de68de400fef44f5e9fba (diff) |
Merge "build: Execute ldconfig to build cache." into 13
-rw-r--r-- | main/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/Makefile b/main/Makefile index a51b48bb1..b3e84e16c 100644 --- a/main/Makefile +++ b/main/Makefile @@ -355,7 +355,11 @@ else # Darwin endif endif ifneq ($(LDCONFIG),) +ifneq ($(DESTDIR),) $(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/" +else + $(LDCONFIG) +endif endif $(LN) -sf asterisk "$(DESTDIR)$(ASTSBINDIR)/rasterisk" @@ -373,7 +377,11 @@ ifneq ($(ASTPJ_LIB).$(ASTPJ_SO_VERSION),.) rm -f "$(DESTDIR)$(ASTLIBDIR)/$(ASTPJ_LIB)" endif ifneq ($(LDCONFIG),) +ifneq ($(DESTDIR),) $(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/" +else + $(LDCONFIG) +endif endif clean:: |