bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] Compiling 1.9 for different Endian target


From: Scott Buchanan
Subject: [Bug-gsl] Compiling 1.9 for different Endian target
Date: Fri, 15 Jun 2007 15:25:16 -0700

Was compiling 1.9 for universal binary on OS X and ran into a compile problem with ieee-utils/fp.c. I was compiling on an intel Mac so the configure had defined HAVE_DARWIN86_IEEE_INTERFACE This is fine for the i386 target but not for the ppc target.

My workaround was to hand edit the config.h file and add the following (the first line was put there by .configure.

#define HAVE_DARWIN86_IEEE_INTERFACE 1
#ifdef __BIG_ENDIAN__
#undef HAVE_DARWIN86_IEEE_INTERFACE
#define HAVE_DARWIN_IEEE_INTERFACE 1
#endif

This takes advantage of the gcc preprocessor __BIG_ENDIAN__ that's available.

Thanks.




Scott Buchanan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]