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 | 603096a14765f22c25cc6f3741a3a96e84a715ee (patch) | |
tree | b494934e89942589e80ae43c85abbbde2344939d /include | |
parent | f4be432d180c6069126f048e749ae2fa2f7ff190 (diff) | |
download | ruby-603096a14765f22c25cc6f3741a3a96e84a715ee.tar.gz ruby-603096a14765f22c25cc6f3741a3a96e84a715ee.tar.xz ruby-603096a14765f22c25cc6f3741a3a96e84a715ee.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@22106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-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 1437978bf..50b60c60e 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 |