bootstrap-with-openmp-version-export-missing
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 22 Oct 2020 20:29:07 +0000 (21:29 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 22 Oct 2020 20:29:07 +0000 (21:29 +0100)
===================================================================

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

openmp/runtime/src/CMakeLists.txt

index 9f46b4bd4433f01d1dea87bf6ca05b2c61752c93..fc9b06098ac5afce2773c7ff605727fd25fe5ae6 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