Running ldconfig shouldn't fail; so we can run fakeroot make install properly.
diff --git a/Makefile b/Makefile
index 91c94c8..90cd4ff 100644
--- a/Makefile
+++ b/Makefile
@@ -1986,7 +1986,7 @@
endif
ifneq ($(SYSTEM),MINGW32)
ifneq ($(SYSTEM),Darwin)
- $(Q) ldconfig
+ $(Q) ldconfig || true
endif
endif
@@ -2005,7 +2005,7 @@
endif
ifneq ($(SYSTEM),MINGW32)
ifneq ($(SYSTEM),Darwin)
- $(Q) ldconfig
+ $(Q) ldconfig || true
endif
endif
@@ -2024,7 +2024,7 @@
endif
ifneq ($(SYSTEM),MINGW32)
ifneq ($(SYSTEM),Darwin)
- $(Q) ldconfig
+ $(Q) ldconfig || true
endif
endif
@@ -2035,7 +2035,7 @@
$(Q) $(MAKE) -C third_party/protobuf install prefix=$(prefix)
ifneq ($(SYSTEM),MINGW32)
ifneq ($(SYSTEM),Darwin)
- $(Q) ldconfig
+ $(Q) ldconfig || true
endif
endif
endif
diff --git a/templates/Makefile.template b/templates/Makefile.template
index b302623..dead8b8 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -780,7 +780,7 @@
% endfor
ifneq ($(SYSTEM),MINGW32)
ifneq ($(SYSTEM),Darwin)
- $(Q) ldconfig
+ $(Q) ldconfig || true
endif
endif
</%def>
@@ -800,7 +800,7 @@
$(Q) $(MAKE) -C third_party/protobuf install prefix=$(prefix)
ifneq ($(SYSTEM),MINGW32)
ifneq ($(SYSTEM),Darwin)
- $(Q) ldconfig
+ $(Q) ldconfig || true
endif
endif
endif