llvm-toolchain/debian/patches/bootstrap-with-openmp-version-export-missing.diff
Sylvestre Ledru 694d523063 * Start the work on bootstraping clang
- bootstrap-with-openmp-version-export-missing.diff: fix a link issue
    https://bugs.llvm.org/show_bug.cgi?id=39200
  - bootstrap-fix-include-next.diff: Fix an include issue at bootstrap phase
    https://bugs.llvm.org/show_bug.cgi?id=39162
2018-10-06 15:22:00 +02:00

15 lines
698 B
Diff

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