Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

xcode - clang: error: unsupported option '-static-libgcc' on Mac 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...