From 50e3241ddfd637d031178b5fad8e48715cff1b2b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 11 Nov 2012 05:29:05 -0500 Subject: Add patch to use multiarch lib dirs in ldscripts. --- 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" + +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 -- cgit v0.9.1