Hi,
as gcc-4.4 is not in a usable state right now I would appreciate it, if
we could keep the possibility to build
the old gcc.
The attached patch modifies build-mingw32ce.sh, so that if gcc_src=gcc
is exported, the old gcc is built.
Current behaviour is not modified.
I would be happy if someone (Danny?) could apply it.
Thanks Stefan
Index: src/scripts/build-mingw32ce.sh
===================================================================
--- src/scripts/build-mingw32ce.sh (Revision 1320)
+++ src/scripts/build-mingw32ce.sh (Arbeitskopie)
@@ -14,7 +14,9 @@
ac_default_prefix="/opt/mingw32ce"
-export gcc_src=gcc-4.4.0
+if test -z "${gcc_src}"; then
+ export gcc_src=gcc-4.4.0
+fi
# The list of components, in build order. There's a build_FOO
# function for each of these components
@@ -220,13 +222,21 @@
--without-newlib \
--enable-checking || exit 1
- make ${PARALLELISM} all-gcc || exit 1
- make configure-target-libgcc || exit 1
- make install-gcc || exit 1
- cd ${TARGET}/libgcc || exit 1
- make ${PARALLELLISM} libgcc.a || exit 1
- /usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1
-
+ case ${gcc_src} in
+ gcc)
+ make ${PARALLELISM} all-gcc || exit 1
+ make install-gcc || exit 1
+ ;;
+ gcc-*)
+ make ${PARALLELISM} all-gcc || exit 1
+ make configure-target-libgcc || exit 1
+ make install-gcc || exit 1
+ cd ${TARGET}/libgcc || exit 1
+ make ${PARALLELLISM} libgcc.a || exit 1
+ /usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.4.0 || exit 1
+ ;;
+ esac
+
cd ${BUILD_DIR}
}
@@ -293,24 +303,48 @@
mkdir -p gcc
cd gcc
- ${BASE_DIRECTORY}/${gcc_src}/configure \
- --with-gcc \
- --with-gnu-ld \
- --with-gnu-as \
- --build=${BUILD} \
- --target=${TARGET} \
- --host=${HOST} \
- --prefix=${PREFIX} \
- --enable-threads=win32 \
- --disable-nls \
- --enable-languages=c,c++ \
- --disable-win32-registry \
- --disable-multilib \
- --disable-interwork \
- --without-newlib \
- --enable-checking \
- --with-headers \
- --disable-__cxa_atexit
+ case ${gcc_src} in
+ gcc)
+ ${BASE_DIRECTORY}/${gcc_src}/configure \
+ --with-gcc \
+ --with-gnu-ld \
+ --with-gnu-as \
+ --build=${BUILD} \
+ --target=${TARGET} \
+ --host=${HOST} \
+ --prefix=${PREFIX} \
+ --enable-threads=win32 \
+ --disable-nls \
+ --enable-languages=c,c++ \
+ --disable-win32-registry \
+ --disable-multilib \
+ --disable-interwork \
+ --without-newlib \
+ --enable-checking \
+ --with-headers
+ ;;
+ gcc-*)
+ ${BASE_DIRECTORY}/${gcc_src}/configure \
+ --with-gcc \
+ --with-gnu-ld \
+ --with-gnu-as \
+ --build=${BUILD} \
+ --target=${TARGET} \
+ --host=${HOST} \
+ --prefix=${PREFIX} \
+ --enable-threads=win32 \
+ --disable-nls \
+ --enable-languages=c,c++ \
+ --disable-win32-registry \
+ --disable-multilib \
+ --disable-interwork \
+ --without-newlib \
+ --enable-checking \
+ --with-headers \
+ --disable-__cxa_atexit
+ ;;
+ esac
+
# we build libstdc++ as dll, so we don't need this.
# --enable-fully-dynamic-string \
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel