Skip to main content
Topic: Cross Compilation (Read 5277 times) previous topic - next topic

Cross Compilation

These notes are for developers which might have to rebuild the precompiled libraries for the Windows ports.
One of the easiest solutions I found was cross-compiling from Linux.

Win64:
./configure --host=amd64-mingw32msvc --build=x86_64-linux --enable-c-only --enable-static --disable-shared

then, I needed to add the following to ALL CFLAGS:

find . -name Makefile | xargs sed -i -e "s/-g -O2/-g -O2 -fno-leading-underscore/g"
I was unable to add that CFLAG to the configure run, because then configure wouldn't work anymore...).

RANLIB=amd64-mingw32msvc-ranlib CC=/usr/bin/amd64-mingw32msvc-gcc CFLAGS=-fno-leading-underscore ./configure
Edit: as of 2011-04-10 the new Rtools-213 seem to *not* require the leading underscore anymore ...

2011-04-18
RTools2.13/MSYS
configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --enable-c-only --enable-static --disable-shared

original post by: Steffen Neumann
~~
H. Paul Benton
Scripps Research Institute
If you have an error with XCMS Online please send me the JOBID and submit an error via the XCMS Online contact page