[Libclc-dev] [PATCH] Make libclc link if llvm was built with --enable-libcpp --enable-cxx11

Peter Collingbourne peter at pcc.me.uk
Tue Jun 18 19:48:06 PDT 2013

Hi Jeroen,

On Tue, Jun 18, 2013 at 10:47:10PM +0100, Jeroen Ketema wrote:
> If llvm was built with
>   --enable-libcpp --enable-cxx11
> then any C++ code compiled and linked against LLVM
> needs to include
>   -stdlib=libc++ -std=c++11
> 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.

Wouldn't it be better to fix llvm-config so that the flags appear
in --ldflags?


More information about the Libclc-dev mailing list