clang:error:在Mac OSX Mavericks上不支持选项“-static-libgcc” [英] clang: error: unsupported option '-static-libgcc' on Mac OSX Mavericks
问题描述
我试图从Mac OS X的Mac版本源编译jogl,但获得
clang:错误:不支持的选项'-static-libgcc'在Mac OSX Mavericks
我有 XCode 5.0.1(5A2053)并安装了 OSX Mavericks的命令行工具
任何有关如何解决此问题的提示
I am trying to compile jogl from source on my Mac Mini with Mac OSX mavericks, but getting
clang: error: unsupported option '-static-libgcc' on Mac OSX Mavericks
I have XCode 5.0.1 (5A2053) and installed the Command line tools for OSX Mavericks
Any hints on how to fix this issue
推荐答案
命令 gcc
它只是Clang的一个副本:
The command called gcc
is not really GCC on Mavericks. It's just a copy of Clang:
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
这意味着它不支持只有GCC的标志,例如 -static-libgcc
。找出您的构建系统的哪个部分生成该标志并删除它。
That means it doesn't support GCC-only flags like -static-libgcc
. Find out what part of your build system is generating that flag and get rid of it.
这篇关于clang:error:在Mac OSX Mavericks上不支持选项“-static-libgcc”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!