bootstrap-with-openmp-version-export-missing
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 6 Jan 2021 19:16:26 +0000 (19:16 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 6 Jan 2021 19:16:26 +0000 (19:16 +0000)
===================================================================

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

openmp/runtime/src/CMakeLists.txt

index 19423f58c6c4a2e388811c6596957739b47bae4f..1bcabe117ad2820865a329bd62b87da48ed2108c 100644 (file)
@@ -168,7 +168,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