From 3c1b772a815e117176870aa6b7c1e801ba9e73b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 25 Jan 2006 20:04:44 +0000 Subject: updated instruction on cross-compilation svn path=/trunk/externals/zexy/; revision=4495 --- README.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'README.txt') diff --git a/README.txt b/README.txt index 3daedf8..f8898fe 100644 --- a/README.txt +++ b/README.txt @@ -67,6 +67,7 @@ note on generating dependencies: try: make CPP=cc + win32 : ------------------------------------------------------------------------------ @@ -83,12 +84,15 @@ to compile: OR + cross-compilation for windows on linux using mingw (assumes that the crosscompiler is "i586-mingw32msvc-cc") - #> CFLAGS="" ./configure --host=i586-mingw32msvc --with-extension=dll \ - --with-pd=/path/to/win/pd/ --disable-PIC + #> ./configure --host=i586-mingw32msvc --with-extension=dll \ + --disable-PIC --with-pd=/path/to/win/pd/ + #> make CFLAGS="-fno-unit-at-a-time" notes: configure tries to set the CFLAGS to "-g -O2" if the compiler - accepts this; however, i noticed that when doing a cross-compilation - for w32, pd will not be able to load certain externals if "-O2" - is turned on; the 'CFLAGS=""' will prevent this + accepts this; however, this optimization sometimes generates + binaries that cannot be loaded by pd; it seems that disabling + the "unit-at-a-time" optimization (which gets enabled by "-O2") + is the cause of this problem. turning it off might help + irix : ------------------------------------------------------------------------------ -- cgit v1.2.1