[Libclc-dev] [PATCH] Fix for llvm-config's new --system-libs

Jeroen Ketema j.ketema at imperial.ac.uk
Mon Dec 23 13:44:21 PST 2013


Hi Mike,

Unfortunately this doesn't work with the current released version 3.3 and the soon to be released 3.4; the llvm-config of those versions doesn't support system-libs flag. Hence, the need for a check.

Regards,

 Jeroen

On Dec 23, 2013, at 10:16 PM, Mike Lothian <mike at fireburn.co.uk> wrote:

> Hi 
> 
> I'm not sure if I need to check for version 3.5 first but this makes libclc compile for me
> 
> --- a/configure.py      2013-12-23 20:54:47.072228588 +0000
> +++ b/configure.py      2013-12-23 20:55:32.040228747 +0000
> @@ -64,7 +64,8 @@
>  
>  llvm_bindir = llvm_config(['--bindir'])
>  llvm_core_libs = llvm_config(['--libs', 'core', 'bitreader', 'bitwriter']) + ' ' + \
> -                 llvm_config(['--ldflags'])
> +                 llvm_config(['--ldflags'])  + ' ' + \
> +                 llvm_config(['--system-libs'])
>  llvm_cxxflags = llvm_config(['--cxxflags']) + ' -fno-exceptions -fno-rtti'
>  
>  llvm_clang = os.path.join(llvm_bindir, 'clang')
> 
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at pcc.me.uk
> http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev





More information about the Libclc-dev mailing list