bootstrap-with-openmp-version-export-missing
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 16 Dec 2018 12:07:54 +0000 (12:07 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 16 Dec 2018 12:07:54 +0000 (12:07 +0000)
===================================================================

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

openmp/runtime/src/CMakeLists.txt

index f9e63f4dff60e4b8bea807adc9d3282895a5a300..2db333586903c323b2f521738e52b57925094485 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