diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-07 09:02:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-07 09:02:50 +0000 |
commit | 5610e5dc70196d9dc6c884c4f977572b05db67e3 (patch) | |
tree | b494934e89942589e80ae43c85abbbde2344939d /include/ruby/defines.h | |
parent | 3c164fd92eb42acd915bdf702c73dc1be5a77d5f (diff) | |
download | ruby-5610e5dc70196d9dc6c884c4f977572b05db67e3.tar.gz |
* configure.in (--with-arch): added new option to support
universal binary. replaced --enable-fat-binary option which
didn't work actually.
* configure.in (RUBY_FUNC_ATTRIBUTE): added conditional test.
* configure.in (ac_cv_type_getgroups): decalared because getgroups()
fills rest of the buffer with garbages on Rosetta.
* configure.in (alloca): defines only for powerpc, but always
create empty object to suppress ld warning.
* configure.in (LIBRUBY_DLDFLAGS): set compatibility version with
TEENY.
* configure.in (CFLAGS, LDFLAGS): separates ARCH_FLAG.
* configure.in (arch): renamed to "universal" from "fat".
* Makefile.in (ARCH_FLAG): added.
* include/ruby/defines.h (WORDS_BIGENDIAN): uses
AC_APPLE_UNIVERSAL_BUILD.
* missing/alloca.c (alloca): defines only if C_ALLOCA is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r-- | include/ruby/defines.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 1437978bfd..50b60c60e1 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -108,10 +108,7 @@ void xfree(void*); # define DOSISH_DRIVE_LETTER #endif -#if defined(__NeXT__) || defined(__APPLE__) -/* Do not trust WORDS_BIGENDIAN from configure since -arch compiler flag may - result in a different endian. Instead trust __BIG_ENDIAN__ and - __LITTLE_ENDIAN__ which are set correctly by -arch. */ +#ifdef AC_APPLE_UNIVERSAL_BUILD #undef WORDS_BIGENDIAN #ifdef __BIG_ENDIAN__ #define WORDS_BIGENDIAN |