source:
scripts/patches/binutils-2.14.90.0.8-genscripts-multilib.patch@
23bc3bd4
Last change on this file since 23bc3bd4 was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 1.9 KB |
-
binutils-2.14.90.0.
diff -uNr binutils-2.14.90.0.8-ORIG/ld/genscripts.sh binutils-2.14.90.0.8/ld/genscripts.sh
old new 103 103 if [ "x${host}" = "x${target}" ] ; then 104 104 NATIVE=yes 105 105 USE_LIBPATH=yes 106 skip_libdir=no 106 107 elif [ "x${use_sysroot}" = "xyes" ] ; then 107 108 USE_LIBPATH=yes 109 skip_libdir=no 110 elif [ "x${LIB_PATH}" != "x" ] ; then 111 USE_LIBPATH=yes 112 skip_libdir=yes 108 113 fi 109 114 ;; 110 115 esac … … 125 130 # 126 131 # If the emulparams file set LIBPATH_SUFFIX, prepend an extra copy of 127 132 # the library path with the suffix applied. 128 129 if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then 133 if [ "x${USE_LIBPATH}" = xyes ] ; then 130 134 LIB_PATH2= 131 if [ x"$use_sysroot" != xyes ] ; then 132 LIB_PATH2=${libdir} 135 if [ "x${LIB_PATH}" = "x" ] ; then 136 libs="${NATIVE_LIB_DIRS}" 137 else 138 libs=`echo ${LIB_PATH} | sed 's/:/ /g'` 139 LIB_PATH= 140 fi 141 142 if [ "x${use_sysroot}" != "xyes" ] ; then 143 if [ "x${skip_libdir}" != "xyes" ] ; then 144 case " ${libs} " in 145 *" ${libdir} "*) ;; 146 *) libs="${libdir} ${libs}" ;; 147 esac 148 fi 149 case " ${libs} " in 150 *" ${tool_lib} "*) ;; 151 *) libs="${tool_lib} ${libs}" ;; 152 esac 133 153 fi 134 for lib in ${NATIVE_LIB_DIRS}; do 154 155 for lib in ${libs}; do 135 156 # The "=" is harmless if we aren't using a sysroot, but also needless. 136 157 if [ "x${use_sysroot}" = "xyes" ] ; then 137 158 lib="=${lib}" … … 161 182 esac 162 183 fi 163 184 done 185 164 186 case :${LIB_PATH}:${LIB_PATH2}: in 165 187 *:: | ::*) LIB_PATH=${LIB_PATH}${LIB_PATH2} ;; 166 188 *) LIB_PATH=${LIB_PATH}:${LIB_PATH2} ;; 167 189 esac 168 190 fi 169 191 170 171 192 # Always search $(tooldir)/lib, aka /usr/local/TARGET/lib, except for 172 193 # sysrooted configurations and when LIBPATH=":". 173 194 if [ "x${use_sysroot}" != "xyes" ] ; then
Note:
See TracBrowser
for help on using the repository browser.