diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-24 22:45:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-24 22:45:13 +0000 |
commit | cc11923a9d324dfcc0a3cf29fe981114b0314493 (patch) | |
tree | b84691e3e550d9b6668fda176583a1b1dd1ae290 /configure.in | |
parent | 9eb6a24f3f223831b77806e414cbebce0d8d03bb (diff) | |
download | ruby-cc11923a9d324dfcc0a3cf29fe981114b0314493.tar.gz |
* configure.in (target_alias): replaces cpu with universal too.
* configure.in (target): replaces cpu with arch by --with-arch.
* mkconfig.rb (TOPDIR): chops arch in config instead of
RUBY_PLATFORM which varies on universal_binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in index f12bd30c0e..58926ca368 100644 --- a/configure.in +++ b/configure.in @@ -179,7 +179,12 @@ if test ${target_archs+set}; then RUBY_PREREQ_AC(2.63, [ to compile universal binary]) AC_SUBST(try_header,try_compile) target=`echo $target | sed "s/^$target_cpu-/universal-/"` + target_alias=`echo $target_alias | sed "s/^$target_cpu-/universal-/"` target_cpu=universal + else + target=`echo $target | sed "s/^$target_cpu-/${target_archs}-/"` + target_alias=`echo $target_alias | sed "s/^$target_cpu-/${target_archs}-/"` + target_cpu=${target_archs} fi CFLAGS="$CFLAGS ${ARCH_FLAG}" LDFLAGS="${LDFLAGS+$LDFLAGS }${ARCH_FLAG}" |