|Bill Allombert on Tue, 22 Dec 2009 23:57:53 +0100|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Cross-compiling PARI with mingw on Linux|
Hello PARI-dev, This is a summary on how I can cross-compile PARI with mingw and test the result on Debian (for ix86 and amd64) You need to install the Debian packages mingw32 and wine. You need the attached script "runwine" (trivial wrapper around wine). 1) run Configure as follow: RUNTEST=/path/to/runwine CC=i586-mingw32msvc-gcc ./Configure --host=i586-mingw 2) compile: make gp -C Omingw-i586 3) test: RUNTEST=/path/to/runwine make bench -C Omingw-i586 (every test but program-sta.dif should pass). Cheers, Bill.
#/bin/sh PROG="./$1" shift wine $PROG "$@" 2>&1 | sed 's/[\r]//'