]> git.saurik.com Git - apt-legacy.git/commitdiff
Fixed the install_name on libapt-pkg to make setuid installation software work.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Feb 2008 13:20:05 +0000 (13:20 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Feb 2008 13:20:05 +0000 (13:20 +0000)
A dylib.diff
M port.diff

git-svn-id: http://svn.telesphoreo.org/trunk@64 514c082c-b64e-11dc-b46d-3d985efe055d

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)