2013/8/9 Hatte John <june.tune.sea@xxxxxxxxx>: > hi: > 创建了一个harddisk image > 文件,上面有编译好的linux内核,也有可以使用的文件系统,我现在想把这个image挂载在host下,然后从host环境下安装gcc到这个image上面,一开始想当然地认为./configure > --prefix=/image 挂载目录,然后make install 就行了,后来发现这个行不通,因为gcc依赖较多的libs > 和headers. > > 所以到这里来请教一下有没有解决方案。 看我的项目,有你需要的,虽然不能直接用,但是可以作为一个例子,让你知道具体步骤,gcc依赖linux-headers,binutils,gmp,mpfr,mpc,ppl/isl,cloog。 https://github.com/elta/Cross-SDK And you are welcome to contribute other target or patch the project. > 谢谢! Regards, Jia