clang: error: unsupported option '-static-libgcc' on Mac OSX Mavericks

前端 未结 2 889
情歌与酒
情歌与酒 2020-12-20 18:49

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 Maveric

2条回答
  •  臣服心动
    2020-12-20 19:29

    You can fix this by putting this line in your gluegen.properties file (which should be in your Users/yourname directory):

    gcc.compat.compiler=clang
    

    This tells the JOGL build system that it's using Clang. Otherwise, it thinks it's using gcc, and tries to use gcc-specific options. This fails on Mavericks because gcc is now just a link to Clang.

提交回复
热议问题