Hello!
Here is a small patch to allow cross-compiling of CeGCC. I run
"build-mingw32ce.sh --host=i586-mingw32msvc" from Linux to build a CeGCC
usable on Windows (I use it under MSYS).
gcc, g++, objdump, strings, strip look like they work without problem, but I
encountered a strange problem with ar and ranlib: if I do "ar cru x.a y.o
z.o" and then "ranlib x.a" I get "arm-mingw32ce-ranlib: file format not
recognized". Any idea about this bug?
I would really like to have CeGCC running under MSYS: I use mostly Windows
for development, and MSYS is much faster than Cygwin.
Good night!
--
Geoffroy Couprie
Index: cegcc/src/scripts/build-mingw32ce.sh
===================================================================
--- cegcc/src/scripts/build-mingw32ce.sh (revision 1273)
+++ cegcc/src/scripts/build-mingw32ce.sh (working copy)
@@ -41,6 +41,7 @@
-h, --help print this help, then exit
--prefix=PREFIX install toolchain in PREFIX
[$ac_default_prefix]
+ --host=HOST host on which the toolchain will run [BUILD]
-j, --parallelism PARALLELISM Pass PARALLELISM as -jPARALLELISM
to make invocations.
--components=LIST specify which components to build
@@ -94,6 +95,11 @@
| --co=* | --c=*)
components=$ac_optarg ;;
+ --host )
+ ac_prev=host ;;
+ --host=* )
+ host=$ac_optarg ;;
+
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
@@ -181,6 +187,7 @@
cd binutils
${BASE_DIRECTORY}/binutils/configure \
--prefix=${PREFIX} \
+ --host=${HOST} \
--target=${TARGET} \
--disable-nls
@@ -200,6 +207,8 @@
--with-gnu-ld \
--with-gnu-as \
--target=${TARGET} \
+ --build=${BUILD} \
+ --host=${HOST} \
--prefix=${PREFIX} \
--disable-threads \
--disable-nls \
@@ -257,7 +266,9 @@
--with-gcc \
--with-gnu-ld \
--with-gnu-as \
+ --build=${BUILD} \
--target=${TARGET} \
+ --host=${HOST} \
--prefix=${PREFIX} \
--enable-threads=win32 \
--disable-nls \
@@ -446,6 +457,12 @@
export BUILD=`sh ${BASE_DIRECTORY}/gcc/config.guess`
export PATH=${PREFIX}/bin:${PATH}
+if [ "x${host}" != "x" ]; then
+ export HOST="${host}"
+else
+ export HOST=${BUILD}
+fi
+
echo "Building mingw32ce:"
echo "source: ${BASE_DIRECTORY}"
echo "building in: ${BUILD_DIR}"
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel