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>

--- Makefile.in.orig	2011-03-31 20:08:36.000000000 +0100
+++ Makefile.in	2012-01-07 02:22:58.000000000 +0000
@@ -888,8 +888,8 @@
 ifeq (,$(HOST_BIN_SUFFIX))
 	mv -f $(SHLIB_ANY_VER) $(SHLIB_EXACT_VER)
 	@[ ! -h $(SHLIB_ABI_VER) ] || rm -f $(SHLIB_ABI_VER)
-	ln -s $(SHLIB_EXACT_VER) $(SHLIB_ABI_VER)
-	ln -s $(SHLIB_ABI_VER) $(SHLIB_ANY_VER)
+	ln -s $(notdir $(SHLIB_EXACT_VER)) $(SHLIB_ABI_VER)
+	ln -s $(notdir $(SHLIB_ABI_VER)) $(SHLIB_ANY_VER)
 endif
 endif
 ifneq (,$(IMPORT_LIBRARY))