summaryrefslogtreecommitdiff
path: root/buildlib/library.mak
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:23 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:23 +0000
commit3763d79d2322e8cd7459570b7d40395e10586550 (patch)
treeb14e10f21d8b19fd24e38449b8d5e47a67d0f118 /buildlib/library.mak
parentc901051d43e68c2edd91360830b4f279a8896e15 (diff)
Made it erase the old libraries
Author: jgg Date: 1999-04-04 02:20:22 GMT Made it erase the old libraries
Diffstat (limited to 'buildlib/library.mak')
-rw-r--r--buildlib/library.mak3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildlib/library.mak b/buildlib/library.mak
index 8c8c2fa7a..b0cf47615 100644
--- a/buildlib/library.mak
+++ b/buildlib/library.mak
@@ -21,7 +21,7 @@ $(LOCAL)-DEP := $(addprefix $(DEP)/,$(addsuffix .opic.d,$(notdir $(basename $(SO
$(LOCAL)-HEADERS := $(addprefix $(INCLUDE)/,$(HEADERS))
$(LOCAL)-SONAME := lib$(LIBRARY).so.$(MAJOR)
$(LOCAL)-SLIBS := $(SLIBS)
-$(LOCAL)-LIBRARY := $(LIBARARY)
+$(LOCAL)-LIBRARY := $(LIBRARY)
# Install the command hooks
headers: $($(LOCAL)-HEADERS)
@@ -45,6 +45,7 @@ $(LIB)/lib$(LIBRARY).so: $(LIB)/lib$(LIBRARY).so.$(MAJOR).$(MINOR)
# The binary build rule
$(LIB)/lib$(LIBRARY).so.$(MAJOR).$(MINOR): $($(LOCAL)-HEADERS) $($(LOCAL)-OBJS)
+ -rm -f lib$($(@F)-LIBRARY).so* 2> /dev/null
echo Building shared library $@
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(PICFLAGS) $(LFLAGS) -o $@ \
-Wl,-soname -Wl,$($(@F)-SONAME) -shared $(filter %.opic,$^) \