OSX10.10下安装clang libcxx时报Unknown option error?

Unknown option error when installing clang libcxx under OSX10.10?

最新的 llvm-clang 已安装(我在 ~/ 目录下构建源)。

我正在尝试安装标准库 libc++。 执行成功后

svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx

我运行

./buildit

~/llvm-clang/libcxx/lib

但是,我得到一个错误:

+ clang algorithm.o any.o bind.o chrono.o condition_variable.o debug.o exception.o future.o hash.o ios.o iostream.o locale.o memory.o mutex.o new.o optional.o random.o regex.o shared_mutex.o stdexcept.o string.o strstream.o system_error.o thread.o typeinfo.o utility.o valarray.o -fPIC -o libc++.so.1.0 -shared - nodefaultlibs -Wl,-soname,libc++.so.1 -lpthread -lrt -lc -lstdc++ -nostdinc++ -std=c++11 -fstrict-aliasing -Wall -Wextra -Wshadow -Wconversion -Wstrict-aliasing=2 -Wstrict-溢出=4<br> clang:警告:编译期间未使用的参数:'-nostdinc++'<br> ld:未知选项:-soname<br> clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) 我该如何解决?

OSX 链接器不知道 -soname 选项。有几种解决方法(使用 install_name、删除 makefile、...)请参阅此 What is the 'soname' option for building shared libraries for? and this "ld: unknown option: -soname" on OS X