At the moment we create a symlink: /usr/lib/libselinux.so -> ../../lib/libselinux.so.1 This works if (and only if) $SHLIBDIR and $LIBDIR are different only by ../../. Instead create a symlink from $LIBDIR/libselinux.so->$SHLIBDIR/libselinux.so.1 Thus it works no matter what values one might use for LIBDIR and SHLIBDIR. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- libselinux/src/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile index 78874be..bccc777 100644 --- a/libselinux/src/Makefile +++ b/libselinux/src/Makefile @@ -126,7 +126,7 @@ install: all install -m 755 $(LIBSO) $(SHLIBDIR) test -d $(LIBDIR)/pkgconfig || install -m 755 -d $(LIBDIR)/pkgconfig install -m 644 $(LIBPC) $(LIBDIR)/pkgconfig - cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET) + ln -sf $(SHLIBDIR)/$(LIBSO) $(LIBDIR)/$(TARGET) install-pywrap: pywrap test -d $(PYLIBDIR)/site-packages/selinux || install -m 755 -d $(PYLIBDIR)/site-packages/selinux -- 1.7.6.2 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.