diff --git a/main/Makefile b/main/Makefile
index 331da845c81c394282c7c45e3d7224e44f888858..4d1b2c41bd27877b2ce8ef0ea3beb29f6890fb50 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -355,7 +355,7 @@ else # Darwin
 endif
 endif
 ifneq ($(LDCONFIG),)
-	$(LDCONFIG)
+	$(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
 endif
 	$(LN) -sf asterisk "$(DESTDIR)$(ASTSBINDIR)/rasterisk"
 
@@ -373,7 +373,7 @@ ifneq ($(ASTPJ_LIB).$(ASTPJ_SO_VERSION),.)
 	rm -f "$(DESTDIR)$(ASTLIBDIR)/$(ASTPJ_LIB)"
 endif
 ifneq ($(LDCONFIG),)
-	$(LDCONFIG)
+	$(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
 endif
 
 clean::