Hello,
When cross compiling for Windows from OSX, the build fails when trying
to compile some Objective C++ files. This can be avoided by an extra
test before setting USEMMFILES in configure.in.

Cheers,

Tony


diff -ur fltk-1.3.x-r8659.orig/configure.in fltk-1.3.x-r8659/configure.in
--- fltk-1.3.x-r8659.orig/configure.in 2011-03-07 03:54:58.000000000 +1100
+++ fltk-1.3.x-r8659/configure.in 2011-05-24 22:11:40.000000000 +1000
@@ -34,7 +34,7 @@
 AC_INIT(src/Fl.cxx)

 dnl So --with-archflags option is used during "checking size of long"
-if test `uname` = Darwin; then
+if test `uname` = Darwin && test "x$cross_compiling" = xno ; then
   if test "x$with_archflags" != x ; then
     CFLAGS="$CFLAGS $with_archflags"
   fi

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to