summaryrefslogtreecommitdiff
path: root/debian/patches/openmp/bootstrap-with-openmp-version-export-missing.diff
blob: f503df2099d48ed276d8cf6bbe36c5b4776f0961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: llvm-toolchain-7-7/openmp/runtime/src/CMakeLists.txt
===================================================================
--- llvm-toolchain-7-7.orig/openmp/runtime/src/CMakeLists.txt
+++ llvm-toolchain-7-7/openmp/runtime/src/CMakeLists.txt
@@ -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