Configure で ASFLAGS を指定

e$B$_$d$`$3$G$9!#e(B

HP-UX e$B>e$Ge(B ruby e$B$re(B LP64 e$B$G%3%s%Q%$%ke(B (CFLAGS=+DD64
e$B$r;XDje(B) e$B$7$h$&$H$9$k$He(B
e$B0J2<$N$h$&$K$J$j$^$9!#e(B

% uname -srm
HP-UX B.11.23 ia64
% what which cc
/usr/bin/cc:
HP aC++/C for Itanium-based systems B3910B A.05.60 [Aug 25
2004]
% ./configure CFLAGS="+DD64" --program-suffix=190
% make
:
as -o ia64.o /ia64.s
cc +DD64 -g0 -DRUBY_EXPORT -I. -I -c /dmyext.c
ar rcu libruby190-static.a array.o ascii.o bignum.o class.o
(e$BN,e(B)
ar: e$B%U%!%$%ke(B ia64.o
e$B$O%^%C%A$7$J$$%G!<%?e(BABIe$B$N2<$G%S%k%I$5$l$F$$$^$9!#e(B

*** Error exit code 1

Stop.
%

env ASFLAGS="+A64" make e$B$H$9$l$P$$$$$N$G$9$,!"Kh2se(B make e$B$Ge(B
ASFLAGS e$B$r;XDj$9$ke(B
e$B$N$,LLE]$J$N$Ge(B configure
e$B$G;XDj$G$-$k$h$&$K$7$FM_$7$$$N$G$9$,$$$+$+$G$7$g$&$+!#e(B

Index: Makefile.in

RCS file: /src/ruby/Makefile.in,v
retrieving revision 1.78
diff -u -r1.78 Makefile.in
Makefile.in 25 Jun 2006 14:02:20 -0000 1.78
+++ Makefile.in 26 Jul 2006 11:03:09 -0000
@@ -80,6 +80,8 @@
AR = @AR@
ARFLAGS = rcu
RANLIB = @RANLIB@
+AS = @AS@
+ASFLAGS = @ASFLAGS@

OBJEXT = @OBJEXT@
MANTYPE = @MANTYPE@
@@ -161,6 +163,9 @@
.c.@OBJEXT@:
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -c $<

+.s.@OBJEXT@:

clean-local::
@$(RM) ext/extinit.c ext/extinit.$(OBJEXT)

Index: configure.in

RCS file: /src/ruby/configure.in,v
retrieving revision 1.309
diff -u -r1.309 configure.in
configure.in 25 Jul 2006 16:03:41 -0000 1.309
+++ configure.in 26 Jul 2006 11:03:09 -0000
@@ -165,6 +165,10 @@
AC_CHECK_PROGS(AR, aal, ar)
fi

+AC_CHECK_TOOL(AS, as)
+ASFLAGS=$ASFLAGS
+AC_SUBST(ASFLAGS)
+
case $target_os in
cygwin*|mingw*)
AC_CHECK_TOOL(NM, nm)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs