summaryrefslogtreecommitdiff
path: root/include/makeinclude/rules.lib.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'include/makeinclude/rules.lib.GNU')
-rw-r--r--include/makeinclude/rules.lib.GNU4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/makeinclude/rules.lib.GNU b/include/makeinclude/rules.lib.GNU
index 9b7c8acf337..bd7fea06c6d 100644
--- a/include/makeinclude/rules.lib.GNU
+++ b/include/makeinclude/rules.lib.GNU
@@ -92,7 +92,9 @@ ifdef TEMPINCDIR
fi
endif
-chmod a+r $@
+ifneq (,$(RANLIB))
-$(RANLIB) $@
+endif # RANLIB
# Note that if you don't want to build shared libraries, just remove the $(VSHOBJS)
ifdef SHLIBBUILD
@@ -114,5 +116,7 @@ ifdef SHLIBA
$(SHLIBA): $(VSHLIB)
$(AR) $(ARFLAGS) $@ $?
-chmod a+rx $@
+ifneq (,$(RANLIB))
-$(RANLIB) $@
+endif # RANLIB
endif