From 18583eaa2c6fa769ce80605422fa10a60d353af7 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Mon, 2 Dec 2019 17:06:08 +0300 Subject: Import llvm-toolchain-8 (1:8.0.1-4) --- .../bootstrap-with-openmp-version-export-missing.diff | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 debian/patches/openmp/bootstrap-with-openmp-version-export-missing.diff (limited to 'debian/patches/openmp/bootstrap-with-openmp-version-export-missing.diff') diff --git a/debian/patches/openmp/bootstrap-with-openmp-version-export-missing.diff b/debian/patches/openmp/bootstrap-with-openmp-version-export-missing.diff new file mode 100644 index 0000000..f503df2 --- /dev/null +++ b/debian/patches/openmp/bootstrap-with-openmp-version-export-missing.diff @@ -0,0 +1,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 -- cgit v1.2.3