Clang 3.8: Solaris 10 build

Good morning,
I got this error right at the end of build process:

[100%] Building CXX object tools/dsymutil/CMakeFiles/llvm-dsymutil.dir/DwarfLinker.cpp.o
ld: elf error: file …/…/…/…/lib/ elf_getehdr: Memory allocation error: scn descriptors: Not enough space
collect2: error: ld returned 1 exit status
gmake[2]: *** [lib/] Error 1
gmake[1]: *** [tools/clang/tools/libclang/CMakeFiles/libclang.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…

Any idea how to raise ld’s memory allocation limit on Solaris 10?