Ticket #29446: patch-DESTDIR.diff

File patch-DESTDIR.diff, 881 bytes (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)
  • Makefile.in

    Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
    Date: 2012-01-07
    Initial Package Version: 1.0.0
    Upstream Status: unknown
    Origin: see below
    Description: Fixes symlinks on libmozjs185.so when DESTDIR is used,
    so that they do not point to the build tree.
    
    # See discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=628723
    # Patch created by Colin Walters <walters@verbum.org>
    
    old new  
    888888ifeq (,$(HOST_BIN_SUFFIX))
    889889        mv -f $(SHLIB_ANY_VER) $(SHLIB_EXACT_VER)
    890890        @[ ! -h $(SHLIB_ABI_VER) ] || rm -f $(SHLIB_ABI_VER)
    891         ln -s $(SHLIB_EXACT_VER) $(SHLIB_ABI_VER)
    892         ln -s $(SHLIB_ABI_VER) $(SHLIB_ANY_VER)
     891        ln -s $(notdir $(SHLIB_EXACT_VER)) $(SHLIB_ABI_VER)
     892        ln -s $(notdir $(SHLIB_ABI_VER)) $(SHLIB_ANY_VER)
    893893endif
    894894endif
    895895ifneq (,$(IMPORT_LIBRARY))