source: scripts/patches/binutils-2.15.91.0.1-genscripts-multilib_use_libpath.patch@ 3d85c53

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 3d85c53 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: 898 bytes
RevLine 
[617118d]1--- binutils-2.15.91.0.1-ORIG/ld/genscripts.sh 2004-05-28 04:26:04.000000000 +1000
2+++ binutils-2.15.91.0.1/ld/genscripts.sh 2004-07-14 23:54:02.000000000 +1000
3@@ -105,6 +105,8 @@
4 USE_LIBPATH=yes
5 elif [ "x${use_sysroot}" = "xyes" ] ; then
6 USE_LIBPATH=yes
7+ elif [ "x${LIB_PATH}" != "x" ] ; then
8+ USE_LIBPATH=yes
9 fi
10 ;;
11 esac
12@@ -125,11 +127,15 @@
13 #
14 # If the emulparams file set LIBPATH_SUFFIX, prepend an extra copy of
15 # the library path with the suffix applied.
16-
17-if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then
18+if [ "x${USE_LIBPATH}" = xyes ] ; then
19 LIB_PATH2=
20+ if [ "x${LIB_PATH}" = "x" ] ; then
21+ libs="${NATIVE_LIB_DIRS}"
22+ else
23+ libs=`echo ${LIB_PATH} | sed 's/:/ /g'`
24+ LIB_PATH=
25+ fi
26
27- libs=${NATIVE_LIB_DIRS}
28 if [ "x${use_sysroot}" != "xyes" ] ; then
29 case " ${libs} " in
30 *" ${libdir} "*) ;;
Note: See TracBrowser for help on using the repository browser.