summaryrefslogtreecommitdiffstats
path: root/patches/02_use-multiarch-lib-search-dirs-in-ldscripts.patch
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-11 05:29:05 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-11 05:33:34 (EST)
commit50e3241ddfd637d031178b5fad8e48715cff1b2b (patch)
treec55329994adfca50e853327ded7719556a3f807e /patches/02_use-multiarch-lib-search-dirs-in-ldscripts.patch
parent80bea351377bab4c71d3d0461096ec64fa938d25 (diff)
Add patch to use multiarch lib dirs in ldscripts.
Diffstat (limited to 'patches/02_use-multiarch-lib-search-dirs-in-ldscripts.patch')
-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