Install with relative symlinks if $(root_libdir) == $(libdir)

When installing the ELF link library, avoid using absolute pathnames
if $(root_libdir) and $(libdir) are the same.

Addresses-Sourceforge-Bug: #1782913

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
bitmap-optimize
Theodore Ts'o 2008-09-07 03:17:22 -04:00
parent 4efd17cccb
commit a846a6e0a7
1 changed files with 6 additions and 2 deletions

View File

@ -45,8 +45,12 @@ install-shlibs install:: $(ELF_LIB) installdirs-elf-lib
@echo " SYMLINK $(ELF_INSTALL_DIR)/$(ELF_SONAME)"
@$(LN_S) -f $(ELF_LIB) $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_SONAME)
@echo " SYMLINK $(libdir)/$(ELF_IMAGE).so"
@$(LN_S) -f $(ELF_INSTALL_DIR)/$(ELF_SONAME) \
$(DESTDIR)$(libdir)/$(ELF_IMAGE).so
@if test "$(ELF_INSTALL_DIR)" = "$(libdir)"; then \
$(LN_S) -f $(ELF_SONAME) $(DESTDIR)$(libdir)/$(ELF_IMAGE).so ; \
else \
$(LN_S) -f $(ELF_INSTALL_DIR)/$(ELF_SONAME) \
$(DESTDIR)$(libdir)/$(ELF_IMAGE).so; \
fi
@echo " LDCONFIG"
@-$(LDCONFIG)