bootstrap-with-openmp-version-export-missing
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 7 Aug 2019 13:11:36 +0000 (14:11 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Wed, 7 Aug 2019 13:11:36 +0000 (14:11 +0100)
===================================================================

Gbp-Pq: Topic openmp
Gbp-Pq: Name bootstrap-with-openmp-version-export-missing.diff

openmp/runtime/src/CMakeLists.txt

index 9bf9c808d085d2b9c3cb488aa02404eb8766f85e..5aaa40e165b878f6e392791c7277d75dffad15bb 100644 (file)
@@ -174,7 +174,8 @@ endif()
 
 # Linking command will include libraries in LIBOMP_CONFIGURED_LIBFLAGS
 libomp_get_libflags(LIBOMP_CONFIGURED_LIBFLAGS)
-target_link_libraries(omp ${LIBOMP_CONFIGURED_LIBFLAGS} ${CMAKE_DL_LIBS})
+target_link_libraries(omp ${LIBOMP_CONFIGURED_LIBFLAGS} ${CMAKE_DL_LIBS}
+  "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports_so.txt")
 
 # Create *.inc before compiling any sources
 # objects depend on : .inc files