If llvm was built with
then any C++ code compiled and linked against LLVM
needs to include
Unfortunately, these just occur in --cxxflags of
llvm-config and not in --ldflags. Hence, the flags
are not passed when linking prepare-builtins. As a
work around pass all --cxxflags at the linking stage.
Thanks for your fast reply.
Wouldn't it be better to fix llvm-config so that the flags appear
Indeed, you're absolutely right. Note, however, that this doesn't help much with the version of llvm that libclc current builds against (or the new llvm 3.3 for that matter). In any case, I'll make sure to take up this issue with the llvm people.