summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patches/02_use-multiarch-lib-search-dirs-in-ldscripts.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/02_use-multiarch-lib-search-dirs-in-ldscripts.patch b/patches/02_use-multiarch-lib-search-dirs-in-ldscripts.patch
new file mode 100644
index 0000000..b8cf899
--- /dev/null
+++ b/patches/02_use-multiarch-lib-search-dirs-in-ldscripts.patch
@@ -0,0 +1,17 @@
+Description: Use multiarch library search directories in ldscripts
+ The ldscripts of course control the linking of *target-architecture* binary
+ objects, so we need to search for libraries in the target architecture's
+ library path.
+From: "P. J. McDermott" <pjm@nac.net>
+
+diff -Naur src.orig/ld/genscripts.sh src/ld/genscripts.sh
+--- src.orig/ld/genscripts.sh 2010-12-15 09:56:37.000000000 -0500
++++ src/ld/genscripts.sh 2012-11-11 05:23:39.143135998 -0500
+@@ -242,6 +242,7 @@
+ fi
+
+ LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'`
++LIB_SEARCH_DIRS="${LIB_SEARCH_DIRS}SEARCH_DIR(\"${OPK_TARGET_ARCH}\");"
+
+ # We need it for testsuite.
+ set $EMULATION_LIBPATH