在OS X 10.9.2上编译GREP 2.18

时间:2014-05-15 17:45:24

标签: macos grep

当我尝试在Mac OS X 10.9.2上构建grep-2.18时,返回

ld: warning: ignoring file libgrep.a, file was built for archive which is not the architecture being linked (x86_64): libgrep.a
Undefined symbols for architecture x86_64:

然后列出被忽略的libgrep.a内必须包含的内容。请帮助,这困扰了我多年。 另外,我是那种挑剔且不喜欢使用预制二进制文件的人,所以请不要告诉我使用MacPorts,Homebrew等...

1 个答案:

答案 0 :(得分:0)

使用此配置构建grep-2.20

 ./configure --prefix=$PREFIX --build=i386-apple-darwin CFLAGS=-m32