link against single libLLVM shared library when available
commita22f98455fb45534ff23565415b515b2dd92d83b
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 24 Feb 2016 13:26:25 +0000 (24 14:26 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 24 Feb 2016 15:01:06 +0000 (24 16:01 +0100)
tree2998ce599eb547c2c70789affbd6b89344605158
parent8bc984688df45a5beb2e5f148900edae1917d970
link against single libLLVM shared library when available

The llvm libraries are linked statically by default.
Linking them into libpet.so may not work reliably and
some linkers will complain about this.
While it is possible to compile shared llvm libraries using
BUILD_SHARED_LIBS, http://llvm.org/docs/CMake.html recommends
against this, proposing to build a single shared library
using LLVM_BUILD_LLVM_DYLIB instead.
Link against this single shared library when it is available.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Makefile.am
m4/ax_detect_clang.m4