I believe this may need a bit wider testing on solaris, but with this
patched Makefile pkgsrc clang seems to build okay and work, at least on
the few programs I've tested.
I've built with pkgsrc gcc 4.8.2 and builtin gcc 4.7.3 on OpenIndiana.
NB: solaris `ld' is found through paths, so it is probably neither a
good idea to use or build with */gnu/bin in your path.
This could probably be fixed by hardcoding the path to ld in place of
the call to 'getToolChain().GetProgramPath("ld")' in
clang/lib/Driver/Tools.cpp but I obstained from doing that for now...
Given the imminent release of 3.4, that would be probably a good time to
integrate...
cheers