cross compile on Fedora configure script

Rob Townley rob.townley at gmail.com
Thu Jan 7 14:39:18 CET 2010


#!/bin/bash
#./configure-fedora-compile-mingw32.sh
#./configure --host=i686-pc-mingw32 --with-lzo=./lzo-2.03/
--with-lzo-include=./lzo-2.03/include/ --with-lzo-lib=./lzo-2.03/
#./configure --host=i686-pc-mingw32 --with-lzo=./lzo/
--with-lzo-include=./lzo/include/lzo/ --with-lzo-lib=./lzo/
#./configure --host=i686-pc-mingw32 \
#            --with-lzo=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/ \
#            --with-lzo-include=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/include/lzo/
\
#            --with-lzo-lib=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/ \
#            --with-zlib-include=/usr/i686-pc-mingw32/sys-root/mingw/include/  \
#            --with-zlib-lib=/usr/i686-pc-mingw32/sys-root/mingw/lib/  \
#            --with-openssl=/usr/i686-pc-mingw32/sys-root/mingw/bin/ \
#            --with-openssl-include=/usr/i686-pc-mingw32/sys-root/mingw/include/
\
#            --with-openssl-lib=/usr/i686-pc-mingw32/sys-root/mingw/lib/ \
#The following is when attempting to use self compiled openssl.
#./configure --host=i686-pc-mingw32 \
#            --with-lzo=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/ \
#            --with-lzo-include=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/include/lzo/
\
#            --with-lzo-lib=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/ \
#            --with-zlib-include=/usr/i686-pc-mingw32/sys-root/mingw/include/  \
#            --with-zlib-lib=/usr/i686-pc-mingw32/sys-root/mingw/lib/  \
#            --with-openssl=$HOME/mingw/usr/local \
#
echo It is remotely possible that this will be helpful to others when
using Fedora to cross compile tinc for windows.
echo Rather messy for a couple of reasons - i compiled on machines at
home, work,
echo and in between using getdropbox.com's file syncing.
echo The file layout became somewhat inconsistent.
echo tinc with multiple ports for hosts has been running for weeks on
windows and linux.
# when we compile opensll and  zlib ourselves

./configure --host=i686-pc-mingw32 \
            LDFLAGS=-static \
            --with-zlib-include=/usr/i686-pc-mingw32/sys-root/mingw/include/  \
            --with-zlib-lib=/usr/i686-pc-mingw32/sys-root/mingw/lib/  \
            --with-lzo=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/ \
            --with-lzo-include=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/include/lzo/ \
            --with-lzo-lib=$HOME/Dropbox/SOURCE/tinc/lzo-2.03/ \
            --with-openssl=$HOME/mingw/usr/local \


More information about the tinc mailing list