diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-01-25 20:04:44 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-01-25 20:04:44 +0000 |
commit | 3c1b772a815e117176870aa6b7c1e801ba9e73b8 (patch) | |
tree | 425fb2fb7520cc732fec1742de50233e4ba2c395 | |
parent | 8e535e93efee1ed07984059f3a8efaa129c68a63 (diff) |
updated instruction on cross-compilation
svn path=/trunk/externals/zexy/; revision=4495
-rw-r--r-- | README.txt | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 :
------------------------------------------------------------------------------
|