aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--configure.in4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b2f395100..bdd4da7483 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Sep 15 12:01:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_UNIVERSAL_ARCH): check real target CPU after
+ AC_PROG_CC.
+
Tue Sep 15 06:42:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (install-all): target to install all.
diff --git a/configure.in b/configure.in
index 0cc637dd83..1dc3533b25 100644
--- a/configure.in
+++ b/configure.in
@@ -155,6 +155,8 @@ AC_ARG_WITH(arch,
entirely, then the package will be built only for the
target platform]),
[target_archs="$withval"], [unset target_archs])
+
+AC_DEFUN([RUBY_UNIVERSAL_ARCH], [
test ${CFLAGS+set} && CFLAGS=`echo "$CFLAGS" | sed 's/ *-arch *[^ ]*//g'`
test ${LDFLAGS+set} && LDFLAGS=`echo "$LDFLAGS" | sed 's/ *-arch *[^ ]*//g'`
unset ARCH_FLAG universal_binary universal_archnames
@@ -227,6 +229,7 @@ EOF
fi
target_archs="$target_cpu"
fi
+])
case $target_cpu in
when(i?86) frame_address=yes;;
@@ -284,6 +287,7 @@ AC_SUBST(OUTFLAG)
AC_SUBST(COUTFLAG)
RUBY_MINGW32
+RUBY_UNIVERSAL_ARCH
AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(AR, ar)