如何在Mac OS X 10.6上安装GNU LD? [英] How to install gnu ld on mac os x 10.6?

查看:347
本文介绍了如何在Mac OS X 10.6上安装GNU LD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Macbook Pro上编译本来很好的 Contiki OS 时,我遇到很多麻烦(与Mac OS X 10.6). Contiki实际上使用了许多特定于GNU的功能和GCC,AR,LD等选项.因此,我通过macports安装了这些实用程序,但是看起来"port install binutils"没有安装GNU ld,是吗?

所以,问题是,如何在Mac上获取GNU ld?是否有一种简单的替代方法(即wget, configure, make, make install方法)?

解决方案

据我所知,GNU binutils不支持文档都没有提到它,而一些Google搜索则出现了一些 binutils的多个端口,用于交叉编译.

I'm having a lot of trouble compiling the otherwise excellent Contiki OS on my macbook pro (with mac os x 10.6). Contiki actually uses a lot of GNU-specific features and options of GCC, AR, LD, and so on. So I installed those utilities via macports, but it looks like "port install binutils" does not install GNU ld, does it ?

So, the question is, how do I get GNU ld on my mac ? Is there a simple alternative to the hard-way (i.e. the wget, configure, make, make install way) ?

解决方案

As far as I can tell, GNU binutils does not support the Mach-O format. None of the documentation mentions it, and some Googling turns up some recent messages indicating that it is not supported.

Now, you mention the Contiki OS, which looks to me like an embedded operating system. Are you needing to compile to a native executable, or are you trying to cross-compile for some other environment? MacPorts does include several ports of binutils for cross compilation.

这篇关于如何在Mac OS X 10.6上安装GNU LD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆