summaryrefslogtreecommitdiff
path: root/buildlib/library.mak
diff options
context:
space:
mode:
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)