blob: b8cf899b39f2cf5b140b3925935085bb474775da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|