Using 500 libraries started failing with clang++: Argument list too long This is enough to reproduce the issue.