forked from OSchip/llvm-project
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
This commit is contained in:
parent
873889ca16
commit
038855ade8
|
@ -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?")
|
||||
|
|
Loading…
Reference in New Issue