<div dir="ltr">On Fri, Aug 8, 2008 at 4:28 PM, sparky mat <span dir="ltr">&lt;<a href="mailto:max@sparkymat.net">max@sparkymat.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">I tried compiling Ruby 1.9.0-3 (<a href="ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.0-3.tar.gz" target="_blank">ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.0-3.tar.gz</a>) with the following commands:<br>
<br>./configure --prefix=/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr --host=arm-angstrom-linux-gnueabi<br>
make<br><br>When I examine the executables created (using &#39;file &lt;executable name&gt;&#39;) it shows its a x86 binary. Also, I checked the build logs and I see that though it tries to take the libraries from the path specified in --prefix, it skips them and continues (to the x86 ones in /usr/lib/ i guess).<br>

<br>So in conclusion, the &#39;CC&#39;, &#39;LD&#39; , etc. are all pointing to the ones in &#39;/usr/bin&#39; . How do I change this? Do I manually change them in the Makefile? Do I pass CC=&#39;&lt;path to ARM gcc&gt;&#39; LD=&#39;&lt;path to ARM ld&gt;&#39;&nbsp; to ./configure? If so, don&#39;t I need to pass other commands too? Which all and isn&#39;t there a better way? <br>

</div>
</blockquote></div><br>By altering the value of CC in the Makefile, I made some more progress. It compiled miniruby. However, it tries to execute miniruby in the next step and here we fail. I am not very familiar with the Ruby codebase and building it. Is anyone aware what miniruby is?<br>
</div>