Add warning for FORCE_STATIC libraries when using BUILD_SHARED_LIBS.
authorMichael Kruse <llvm@meinersbur.de>
Thu, 25 Aug 2016 13:21:53 +0000 (13:21 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 25 Aug 2016 13:21:53 +0000 (13:21 +0000)
commit225d58382521c6d8ab7af83eba065703ec1613c4
tree40554112663f8d9d3c10b0736f8936e485568ebe
parent3125501bbae5c9a982d8a815560c9f92c50f863a
Add warning for FORCE_STATIC libraries when using BUILD_SHARED_LIBS.

We cannot built ISL as shared object because we build it with
-fvisibility=hidden; The created shared object would have no accessible symbols.

The reason it is built with -fvisibility=hidden is because opt/clang might load
other libraries that have ISL embedded and whose' symbols would conflict with
Polly's private ISL. This could happend with Draggonegg.

In the future we might instead statically link PollyISL into the Polly shared
object to avoid installing the static library.

Requested-by: Vedran Miletic <vedran@miletic.net>
See-also: llvm.org/PR27306
llvm-svn: 279737
polly/cmake/polly_macros.cmake