From: "H. J. Lu" <hjl@lucon.org>
To: binutils@sources.redhat.com
Subject: PATCH: Add LIBPATH_SUFFIX for ${tool_lib}.
Date: Wed, 13 Aug 2003 22:52:00 -0000 [thread overview]
Message-ID: <20030813225242.GA20434@lucon.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 240 bytes --]
We didn't add LIBPATH_SUFFIX for ${tool_lib}. As the result, we got
SEARCH_DIR("/export/tools/ppc64-linux/lib");
This patch changed it to
SEARCH_DIR("/export/tools/ppc64-linux/lib64"); SEARCH_DIR("/export/tools/ppc64-linux/lib");
H.J.
[-- Attachment #2: ld-ml.patch --]
[-- Type: text/plain, Size: 1309 bytes --]
2003-08-13 H.J. Lu <hongjiu.lu@intel.com>
* genscripts.sh (LIB_PATH): Add LIBPATH_SUFFIX for ${tool_lib}.
--- ld/genscripts.sh.ml 2003-08-13 07:29:53.000000000 -0700
+++ ld/genscripts.sh 2003-08-13 15:50:20.000000000 -0700
@@ -123,6 +123,41 @@ if [ "x${use_sysroot}" != "xyes" ] ; the
::) LIB_PATH=${tool_lib} ;;
*) LIB_PATH=${tool_lib}:${LIB_PATH} ;;
esac
+ LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g'`
+ LIB_PATH=
+ LIB_PATH2=
+ for lib in ${LIB_SEARCH_DIRS}; do
+ addsuffix=
+ case "${LIBPATH_SUFFIX}:${lib}" in
+ :*) ;;
+ *:*${LIBPATH_SUFFIX}) ;;
+ *) addsuffix=yes ;;
+ esac
+ if test -n "$addsuffix"; then
+ case :${LIB_PATH}: in
+ *:${lib}${LIBPATH_SUFFIX}:*)
+ ;;
+ ::)
+ LIB_PATH=${lib}${LIBPATH_SUFFIX}
+ LIB_PATH2=${lib}
+ ;;
+ *)
+ LIB_PATH=${LIB_PATH}:${lib}${LIBPATH_SUFFIX}
+ LIB_PATH2=${LIB_PATH2}:${lib}
+ ;;
+ esac
+ else
+ case :${LIB_PATH2}: in
+ *:${lib}:*) ;;
+ ::) LIB_PATH2=${lib} ;;
+ *) LIB_PATH2=${LIB_PATH2}:${lib} ;;
+ esac
+ fi
+ done
+ case :${LIB_PATH}:${LIB_PATH2}: in
+ *:: | ::*) LIB_PATH=${LIB_PATH}${LIB_PATH2} ;;
+ *) LIB_PATH=${LIB_PATH}:${LIB_PATH2} ;;
+ esac
fi
LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'`
next reply other threads:[~2003-08-13 22:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-13 22:52 H. J. Lu [this message]
2003-08-14 0:00 ` PATCH: Add LIBPATH_SUFFIX for ${tool_lib} (take 2) H. J. Lu
2003-08-14 0:07 ` PATCH: Add LIBPATH_SUFFIX for ${tool_lib} Alan Modra
2003-08-14 0:20 ` H. J. Lu
2003-08-14 0:54 ` Alan Modra
2003-08-14 1:02 ` H. J. Lu
2003-08-14 1:34 ` Alan Modra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030813225242.GA20434@lucon.org \
--to=hjl@lucon.org \
--cc=binutils@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).