[polly] r228914 - Link LLVM libraries into libLLVMPolly if BUILD_SHARED_LIBS=ON is set
Tobias Grosser
tobias at grosser.es
Thu Feb 12 00:36:03 PST 2015
On 12.02.2015 09:27, Tobias Grosser wrote:
> Author: grosser
> Date: Thu Feb 12 02:27:19 2015
> New Revision: 228914
>
> URL: http://llvm.org/viewvc/llvm-project?rev=228914&view=rev
> Log:
> Link LLVM libraries into libLLVMPolly if BUILD_SHARED_LIBS=ON is set
>
> Without this change we get linker errors such as:
>
> undefined reference to `llvm::dbgs()'
>
> We only conditionally link in these libraries, as in BUILD_SHARED_LIBS=OFF mode,
> linking in these libraries causes such functions (and especially global options)
> to be defined twice. The "solution" I choose is most likely not ideal, but seems
> to work. If any cmake specialist can suggest a better approach, this would be
> appreciated.
>
> We also drop a .c file that is not needed as it caused linker errors as well.
Hi Brad,
I just "fixed" an issue I have with my cmake files, but I am afraid this
is not the optimal solution. Could you possibly cross-check what I did.
Thank you,
Tobias
More information about the llvm-commits
mailing list