source:
scripts/patches/binutils-2.15.91.0.1-genscripts-multilib.patch@
743e40b
Last change on this file since 743e40b was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.2 KB |
-
binutils-2.15.91.0.
Submitted By: Ryan Oliver (ryan dot oliver at pha dot com dot au) Origin: Ryan Oliver Date: 2004-07-15 Initial package version: 2.15 (problem also exists in 2.14 series) Description: Updated patch, use this for all binutils 2.15 series instead of the binutils-2.15.90.0.1-genscripts-multilib.patch If --with-libpath= was specified during configure (or LIB_PATH was supplied during make) we want to have these libraries added to the linker scripts search paths, and in the case of multi-lib have them processed to provide both lib and lib64 search paths. This patch produces this behaviour when building a cross-binutils. Also to fix an annoyance we remove whatever was specified (if anything) by --libdir= from the linker script search path. This is so when cross- compiling a 64bit target-native biarch toolchain we can specify the installation directory for binutils produced libraries to be */lib64 without having this directory added to the 32bit emulation search path. By rights we should really check if ${libdir} matches a search path in any of the supported emulations for this target (as opposed to only the one genscripts.sh is currently processing) and if so ignore ${libpath}.
old new 105 105 USE_LIBPATH=yes 106 106 elif [ "x${use_sysroot}" = "xyes" ] ; then 107 107 USE_LIBPATH=yes 108 elif [ "x${LIB_PATH}" != "x" ] ; then 109 USE_LIBPATH=yes 108 110 fi 109 111 ;; 110 112 esac … … 125 127 # 126 128 # If the emulparams file set LIBPATH_SUFFIX, prepend an extra copy of 127 129 # the library path with the suffix applied. 128 129 if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then 130 if [ "x${USE_LIBPATH}" = xyes ] ; then 130 131 LIB_PATH2= 132 if [ "x${LIB_PATH}" = "x" ] ; then 133 libs="${NATIVE_LIB_DIRS}" 134 else 135 libs=`echo ${LIB_PATH} | sed 's/:/ /g'` 136 LIB_PATH= 137 fi 131 138 132 libs=${NATIVE_LIB_DIRS}133 139 if [ "x${use_sysroot}" != "xyes" ] ; then 134 140 case " ${libs} " in 135 *" ${libdir} "*) ;;136 *) libs="${libdir} ${libs}" ;;137 esac138 case " ${libs} " in139 141 *" ${tool_lib} "*) ;; 140 142 *) libs="${tool_lib} ${libs}" ;; 141 143 esac
Note:
See TracBrowser
for help on using the repository browser.