Dear Andrew,<div>I find the compiler from android and <a href="http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/">http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/</a> both build cross compile just use static library. So they dont depend on <span style="color:rgb(51,51,51);font-family:Arial;font-size:14px;line-height:22px;background-color:rgb(255,255,255)">dynamic library and can be changed the path.</span></div>
<div><font color="#333333" face="Arial"><span style="font-size:14px;line-height:22px">This is the result after i compile kernel by compile from <a href="http://www.mentor.com">www.mentor.com</a>(you can see the "static linked"), and i check the script in the source code of mentor's compile, i'm sure they only use static libraies.</span></font></div>
<div><font color="#333333" face="Arial"><span style="font-size:14px;line-height:22px">----------------------------------------------------<br><div>[Lee]~/source/3.0.30$ file vmlinux</div><div>vmlinux: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, BuildID[sha1]=0xe1b9d7b6e9edc66715eb1b4d47bf983fa9ff6745, not stripped</div>
<div>----------------------------------------------------</div></span></font></div><div><font color="#333333" face="Arial"><span style="font-size:14px;line-height:22px">But when i build libraries as static, the library cloog-ppl-0.15.11 cannot be built passed, so much errors.</span></font></div>
<div><font color="#333333" face="Arial"><span style="font-size:14px;line-height:22px">Now i'm very very confused.</span><br></font><br><div class="gmail_quote">On Fri, May 25, 2012 at 12:33 AM, Andrew Bradford <span dir="ltr"><<a href="mailto:andrew@bradfordembedded.com" target="_blank">andrew@bradfordembedded.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 24 May 2012 22:45:10 +0800<br>
lee sudo <<a href="mailto:desoxydate@gmail.com">desoxydate@gmail.com</a>> wrote:<br>
<br>
> 1, You can get android's C toolchain there:<br>
><br>
> git clone <a href="https://android.googlesource.com/platform/prebuilt" target="_blank">https://android.googlesource.com/platform/prebuilt</a><br>
> /prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/<br>
> (FROM: <a href="http://source.android.com/source/building-kernels.html" target="_blank">http://source.android.com/source/building-kernels.html</a>)<br>
<br>
Thanks, I did.<br>
<br>
> 2, >try building your toolchain with relative paths<br>
> HOW to?<br>
> (You can modify my script direct)<br>
<br>
Sorry, I don't know.  Read through the GCC manual [1] for the version<br>
of GCC you want to use, it should say how to.<br>
<br>
[1]: <a href="http://gcc.gnu.org/onlinedocs/" target="_blank">http://gcc.gnu.org/onlinedocs/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
-Andrew<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Thanks & BR,</div><div>sudolee<br></div><br>
</div>