From: Jan-Benedict G. <jb...@us...> - 2005-12-11 20:34:43
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6765 Modified Files: build_toolchain.sh Log Message: - Trick libiberty's configure into thinking that there's a working native strncmp() even in the cross-compilation case. - No thanks to uClibc guys who changed symbol visibility to be incompatible with that one of GNU libc (to which they by the way claim compatibility...) Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- build_toolchain.sh 10 Dec 2005 15:27:21 -0000 1.33 +++ build_toolchain.sh 11 Dec 2005 20:34:29 -0000 1.34 @@ -620,15 +620,19 @@ pushd "${BINUTILS_NATIVE_BUILD}" # Configure CC="${TARGET}-gcc" LDFLAGS=-static CFLAGS=-static \ + ac_cv_func_strncmp_works=yes \ execute "${BINUTILS_SRC}/configure" \ --host="${TARGET}" \ --build="`${BINUTILS_SRC}/config.guess`" \ - --target="${TARGET}" --prefix=/usr + --target="${TARGET}" --prefix=/usr ${WERROR} # Build - build "${BUILD_BINUTILS}" && execute make ${MAKEFLAGS} all-binutils - build "${BUILD_BINUTILS}" && execute make ${MAKEFLAGS} all-gas - build "${BUILD_BINUTILS}" && execute make ${MAKEFLAGS} all-ld + build "${BUILD_BINUTILS}" && ac_cv_func_strncmp_works=yes \ + execute make ${MAKEFLAGS} all-binutils + build "${BUILD_BINUTILS}" && ac_cv_func_strncmp_works=yes \ + execute make ${MAKEFLAGS} all-gas + build "${BUILD_BINUTILS}" && ac_cv_func_strncmp_works=yes \ + execute make ${MAKEFLAGS} all-ld # Install build "${BUILD_BINUTILS}" && \ |