Cross building clang/LLVM for Linux/ARM on a Mac


I'm using a Mac build of my clang/LLVM based tool chain ELLCC ( and attempting to cross build itself for ARM/Linux.

I get the following error:
llvm[3]: (build tools): Linking Release+Asserts executable llvm-tblgen (whithout symbols)
ld: unknown option: --version-script=/Users/rich/ellcc/llvm/autoconf/
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Users/rich/ellcc/llvm-build-arm-linux/BuildTools/Release+Asserts/bin/llvm-tblgen] Error 1 make[2]: *** [TableGen/.makeall] Error 2
make[1]: *** [all] Error 1 make: *** [cross-compile-build-tools] Error 1

It looks to me like the Apple ld doesn't like --version-script. How are the make rules (or configure) deciding to use --version-script, and what should I do to change their mind?