bootstrap-with-openmp-version-export-missing
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 1 Apr 2020 15:23:55 +0000 (16:23 +0100)
committerJessica Clarke <jrtc27@debian.org>
Wed, 1 Apr 2020 15:23:55 +0000 (16:23 +0100)
===================================================================

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

openmp/runtime/src/CMakeLists.txt

index 7956ae082a88484a141c0b0e366e5ae08a4af1ee..c88d4d78dc64b9dc205f4df1792e82d10487c254 100644 (file)
@@ -170,7 +170,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