DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Active]

Link: http://www.fltk.org/str.php?L2582
Version: 1.3.0


Under Mac OS, configure/make can be used to build multiple-architecture
versions of FLTK (the so-called universal objects) with the option
--with-archflags="-arch ppc -arch i386 -arch x86_64"

A (minor) problem exists because all 3 compilations share a 
common config.h, that should not contain definitions that
vary with architecture. At present, configure outputs
#define U64 unsigned long 
when run under OS 10.6 because configure tests
are run with a 64-bit architecture if it's available in the
executable. This definition will be used when FLTK is compiled
for ppc and i386, and that's wrong because for these 2 architectures,
unsigned long is 32-bit wide.

I suggest to solve this STR by bracketting the code that outputs
#define U64 ...
with
if test "$uname" != Darwin; then
...
fi
This way, U64 will never be defined for Mac OS, and no architecture
mismatch will happen.

Is this solution OK ?


Link: http://www.fltk.org/str.php?L2582
Version: 1.3.0

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

Reply via email to