Hi,

On Wed, 22 Apr 2015 00:58:01 +0200
Tiago Gehring <[email protected]> wrote:

> One unrelated question: the cmake build does not seem to support the
> generation of the static libs, am I'm missing something or is this
> really not yet supported?
> 
It does support linking with static llvm / clang libraries. If you're
asking if it supports generating static libpocl or libOpenCL, you're
correct, the answer is no.

The static-llvm option in pocl's CMake is to support folks who built
LLVM using CMake, which does not build libLLVM.so by default, unlike
autotools built LLVM.

The main reason static libpocl is not supported, is that nobody cared
enough to make it work :)

Personally, i think that the entire "static libs" business is a bit
dangerous, especially in case of LLVM. It gives people the false
impression that a statically built lib is independent. In the case of
LLVM, there is potentially a ton of header files which the compilation
process might depend on. So if you move the static built lib to a
clean machine and try to compile something, it might blow up on
missing LLVM headers. I've bumped into a bug like this once (not with
pocl though).

So it could work for you and whatever OpenCL programs you're trying to
use, but IMO for pocl to try and support this officialy, is a bit
dangerous road to take. Then again perhaps Pekka / Kalle will disagree,
and they know LLVM better than me.

Cheers,
-- mb

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to