summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2017-08-02 20:10:00 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2017-08-02 20:10:00 +0000
commit038855ade8b3a75548b8d68f3d89bf35e175c5dc (patch)
treebe4f1454f0806b834d0e6b4437af7a2ef57ebae4
parent873889ca1680e0cd5feafec46daccf96116e2751 (diff)
downloadbcm5719-llvm-038855ade8b3a75548b8d68f3d89bf35e175c5dc.tar.gz
bcm5719-llvm-038855ade8b3a75548b8d68f3d89bf35e175c5dc.zip
Exclude version symbols for static libomp
We use symbol versioning for GNU-compatibility but libgomp has versioned symbols only in the shared library but not in the static. Moreover, version symbols in the static library can cause an error at link time. Patch by Olga Malysheva Differential Revision: https://reviews.llvm.org/D36225 llvm-svn: 309877
-rw-r--r--openmp/runtime/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt
index 29e1584ea2e..d605c378271 100644
--- a/openmp/runtime/CMakeLists.txt
+++ b/openmp/runtime/CMakeLists.txt
@@ -313,6 +313,11 @@ if(LIBOMP_USE_ITT_NOTIFY AND NOT LIBOMP_ENABLE_SHARED)
set(LIBOMP_USE_ITT_NOTIFY FALSE)
endif()
+if(LIBOMP_USE_VERSION_SYMBOLS AND (NOT LIBOMP_ENABLE_SHARED) )
+ message(STATUS "Version symbols not supported for static libraries - forcing Version symbols functionality off")
+ set (LIBOMP_USE_VERSION_SYMBOLS FALSE)
+endif()
+
# OMPT-support
set(LIBOMP_OMPT_DEBUG FALSE CACHE BOOL
"Trace OMPT initialization?")
OpenPOWER on IntegriCloud