summaryrefslogtreecommitdiff
path: root/buildlib/staticlibrary.mak
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:32 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:32 +0000
commitb819effdc984e492bbce459faa7432931ccfeb58 (patch)
tree3e99081e2974d317068086a40a8549f4e6c995c0 /buildlib/staticlibrary.mak
parent1ae93c94429de697fb17f7067367fbf32fd3b6fc (diff)
OpenBSD fixes
Author: jgg Date: 1999-12-11 02:11:10 GMT OpenBSD fixes
Diffstat (limited to 'buildlib/staticlibrary.mak')
-rw-r--r--buildlib/staticlibrary.mak3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildlib/staticlibrary.mak b/buildlib/staticlibrary.mak
index 998ca5bf2..0835fe8a0 100644
--- a/buildlib/staticlibrary.mak
+++ b/buildlib/staticlibrary.mak
@@ -39,6 +39,9 @@ $($(LOCAL)-LIB): $($(LOCAL)-HEADERS) $($(LOCAL)-OBJS)
echo Building library $@
-rm $@ > /dev/null 2>&1
$(AR) cq $@ $(filter %.o,$^)
+ifneq ($(words $(RANLIB)),0)
+ $(RANLIB) $@
+endif
# Compilation rules
vpath %.cc $(SUBDIRS)