]> git.saurik.com Git - apt-legacy.git/blobdiff - buildlib/library.mak
Fixed Dl-Limit (long standing APT bug that they won't acknowledge), specified error...
[apt-legacy.git] / buildlib / library.mak
index 610a2083248bc378a3b9b87137d43a1a6e09949d..e55158126ccb143ae38589c6ae0c9dbe60820971 100644 (file)
@@ -55,7 +55,7 @@ $(LIB)/lib$(LIBRARY)$(LIBEXT).dylib.$(MAJOR).$(MINOR): $($(LOCAL)-HEADERS) $($(L
        -rm -f $(LIB)/lib$($(@F)-LIBRARY)*.dylib* 2> /dev/null
        echo Building shared library $@
        $(CXX) $(CXXFLAGS) $(LDFLAGS) $(PICFLAGS) $(LFLAGS) $(LFLAGS_SO)\
-          -o $@ -dynamiclib \
+          -o $@ -Wl,-dylib_install_name,$(patsubst $(LIB)/%,/usr/lib/%,$@) -dynamiclib \
           $(filter %.opic,$^) \
           $($(@F)-SLIBS)