summaryrefslogtreecommitdiff
path: root/buildlib/library.mak
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:28 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:28 +0000
commit70fbac25ae36f62b99a9df1a4a7742a47a8d91ec (patch)
tree71bb8513290bac9868c0d17dd06370d805a25f4e /buildlib/library.mak
parent101030ab14d60497fcba5b1c2866d52fc5ac4780 (diff)
Shared libaries only for linux
Author: jgg Date: 1999-12-10 06:39:46 GMT Shared libaries only for linux
Diffstat (limited to 'buildlib/library.mak')
-rw-r--r--buildlib/library.mak7
1 files changed, 4 insertions, 3 deletions
diff --git a/buildlib/library.mak b/buildlib/library.mak
index 54acb6dd4..caf15606b 100644
--- a/buildlib/library.mak
+++ b/buildlib/library.mak
@@ -47,9 +47,10 @@ $(LIB)/lib$(LIBRARY).so: $(LIB)/lib$(LIBRARY).so.$(MAJOR).$(MINOR)
$(LIB)/lib$(LIBRARY).so.$(MAJOR).$(MINOR): $($(LOCAL)-HEADERS) $($(LOCAL)-OBJS)
-rm -f $(LIB)/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,$^) \
- $($(@F)-SLIBS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(PICFLAGS) $(LFLAGS) $(LFLAGS_SO)\
+ -o $@ $(SONAME_MAGIC)$($(@F)-SONAME) -shared \
+ $(filter %.opic,$^) \
+ $($(@F)-SLIBS)
# Compilation rules
vpath %.cc $(SUBDIRS)