PATCH: Add LIBPATH_SUFFIX for ${tool_lib}.
H. J. Lu
hjl@lucon.org
Wed Aug 13 22:52:00 GMT 2003
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.
-------------- next part --------------
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'`
More information about the Binutils
mailing list