source: scripts/patches/binutils-2.15.91.0.1-genscripts-multilib.patch@ 8185815

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8185815 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[617118d]1Submitted By: Ryan Oliver (ryan dot oliver at pha dot com dot au)
2Origin: Ryan Oliver
3Date: 2004-07-15
4Initial package version: 2.15 (problem also exists in 2.14 series)
5Description:
6 Updated patch, use this for all binutils 2.15 series instead of the
7 binutils-2.15.90.0.1-genscripts-multilib.patch
8
9 If --with-libpath= was specified during configure (or LIB_PATH was
10 supplied during make) we want to have these libraries added to the
11 linker scripts search paths, and in the case of multi-lib have them
12 processed to provide both lib and lib64 search paths.
13 This patch produces this behaviour when building a cross-binutils.
14
15 Also to fix an annoyance we remove whatever was specified (if anything)
16 by --libdir= from the linker script search path. This is so when cross-
17 compiling a 64bit target-native biarch toolchain we can specify the
18 installation directory for binutils produced libraries to be */lib64
19 without having this directory added to the 32bit emulation search path.
20
21 By rights we should really check if ${libdir} matches a search path in
22 any of the supported emulations for this target (as opposed to only the
23 one genscripts.sh is currently processing) and if so ignore ${libpath}.
24
25--- binutils-2.15.91.0.1-ORIG/ld/genscripts.sh 2004-05-28 04:26:04.000000000 +1000
26+++ binutils-2.15.91.0.1/ld/genscripts.sh 2004-07-15 00:09:16.000000000 +1000
27@@ -105,6 +105,8 @@
28 USE_LIBPATH=yes
29 elif [ "x${use_sysroot}" = "xyes" ] ; then
30 USE_LIBPATH=yes
31+ elif [ "x${LIB_PATH}" != "x" ] ; then
32+ USE_LIBPATH=yes
33 fi
34 ;;
35 esac
36@@ -125,17 +127,17 @@
37 #
38 # If the emulparams file set LIBPATH_SUFFIX, prepend an extra copy of
39 # the library path with the suffix applied.
40-
41-if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then
42+if [ "x${USE_LIBPATH}" = xyes ] ; then
43 LIB_PATH2=
44+ if [ "x${LIB_PATH}" = "x" ] ; then
45+ libs="${NATIVE_LIB_DIRS}"
46+ else
47+ libs=`echo ${LIB_PATH} | sed 's/:/ /g'`
48+ LIB_PATH=
49+ fi
50
51- libs=${NATIVE_LIB_DIRS}
52 if [ "x${use_sysroot}" != "xyes" ] ; then
53 case " ${libs} " in
54- *" ${libdir} "*) ;;
55- *) libs="${libdir} ${libs}" ;;
56- esac
57- case " ${libs} " in
58 *" ${tool_lib} "*) ;;
59 *) libs="${tool_lib} ${libs}" ;;
60 esac
Note: See TracBrowser for help on using the repository browser.