1.1 --- a/scripts/build/cc_gcc.sh Wed May 14 17:56:33 2008 +0000
1.2 +++ b/scripts/build/cc_gcc.sh Tue May 20 21:32:39 2008 +0000
1.3 @@ -62,7 +62,7 @@
1.4 [ "${CT_CC_CXA_ATEXIT}" = "y" ] && extra_config="${extra_config} --enable-__cxa_atexit"
1.5 [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] && extra_config="${extra_config} --with-gmp=${CT_PREFIX_DIR} --with-mpfr=${CT_PREFIX_DIR}"
1.6
1.7 - CT_DoLog DEBUG "Extra config passed: \"${extra_config}\""
1.8 + CT_DoLog DEBUG "Extra config passed: '${extra_config}'"
1.9
1.10 # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)
1.11 CC_FOR_BUILD="${CT_CC_NATIVE}" \
1.12 @@ -117,7 +117,7 @@
1.13 [ "${CT_CC_CXA_ATEXIT}" = "y" ] && extra_config="${extra_config} --enable-__cxa_atexit"
1.14 [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] && extra_config="${extra_config} --with-gmp=${CT_PREFIX_DIR} --with-mpfr=${CT_PREFIX_DIR}"
1.15
1.16 - CT_DoLog DEBUG "Extra config passed: \"${extra_config}\""
1.17 + CT_DoLog DEBUG "Extra config passed: '${extra_config}'"
1.18
1.19 CC_FOR_BUILD="${CT_CC_NATIVE}" \
1.20 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
1.21 @@ -210,7 +210,7 @@
1.22 CT_Test "Building Objective-C language is not yet supported. Will try..." "${CT_CC_LANG_OBJC}" = "y"
1.23 CT_Test "Building Objective-C++ language is not yet supported. Will try..." "${CT_CC_LANG_OBJCXX}" = "y"
1.24 CT_Test "Building ${CT_CC_LANG_OTHERS//,/ } language(s) is not yet supported. Will try..." -n "${CT_CC_LANG_OTHERS}"
1.25 - lang_opt=`echo "${lang_opt},${CT_CC_LANG_OTHERS}" |sed -r -e 's/,+/,/g; s/,*$//;'`
1.26 + lang_opt=$(echo "${lang_opt},${CT_CC_LANG_OTHERS}" |sed -r -e 's/,+/,/g; s/,*$//;')
1.27
1.28 extra_config="--enable-languages=${lang_opt}"
1.29 extra_config="${extra_config} ${CT_ARCH_WITH_ARCH} ${CT_ARCH_WITH_ABI} ${CT_ARCH_WITH_CPU} ${CT_ARCH_WITH_TUNE} ${CT_ARCH_WITH_FPU} ${CT_ARCH_WITH_FLOAT}"
1.30 @@ -223,7 +223,7 @@
1.31 fi
1.32 [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] && extra_config="${extra_config} --with-gmp=${CT_PREFIX_DIR} --with-mpfr=${CT_PREFIX_DIR}"
1.33
1.34 - CT_DoLog DEBUG "Extra config passed: \"${extra_config}\""
1.35 + CT_DoLog DEBUG "Extra config passed: '${extra_config}'"
1.36
1.37 # --enable-symvers=gnu really only needed for sh4 to work around a
1.38 # detection problem only matters for gcc-3.2.x and later, I think.
1.39 @@ -262,10 +262,10 @@
1.40 gcc-3.3.[34])
1.41 case "${CT_TARGET}" in
1.42 powerpc64-unknown-linux-gnu|x86_64-unknown-linux-gnu)
1.43 - for d in `find "${CT_SYSROOT_DIR}" -name lib -type d -empty`; do
1.44 - if [ -d `dirname "${d}"`/lib64 ] ; then
1.45 + for d in $(find "${CT_SYSROOT_DIR}" -name lib -type d -empty); do
1.46 + if [ -d $(dirname "${d}")/lib64 ] ; then
1.47 rm -rf "${d}"
1.48 - ln -s `dirname "${d}"`/lib64 "${d}"
1.49 + ln -s $(dirname "${d}")/lib64 "${d}"
1.50 fi
1.51 done ;;
1.52 *) ;;