summaryrefslogtreecommitdiff
path: root/openmp/runtime/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2022-12-08 13:34:38 -0500
committerJoseph Huber <jhuber@amd.com>2022-12-08 13:37:03 -0500
commitc6e6231e2f467528e727bf9287c42975e778b8ed (patch)
tree23d42e69a66a65f7e5b30b10b20b68c745f87203 /openmp/runtime/cmake/config-ix.cmake
parentb4028fbc1a8853c34517f44ef779d517a44bd71d (diff)
downloadllvm-c6e6231e2f467528e727bf9287c42975e778b8ed.tar.gz
[OpenMP][libomp] Fix version scripts after undefined version script changes
Summary: Building with `lld` now errors on undefined symbols by default now. This was causing `libomp` to think that the compiler didn't support version scripts when checking linker features. This patch adds a new script that exports all symbols to be used for testing. We also remove the old workarounds for undefined versions now that it's no longer necessary.
Diffstat (limited to 'openmp/runtime/cmake/config-ix.cmake')
-rw-r--r--openmp/runtime/cmake/config-ix.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/openmp/runtime/cmake/config-ix.cmake b/openmp/runtime/cmake/config-ix.cmake
index 1e02d5a8b5cf..1c688522a00a 100644
--- a/openmp/runtime/cmake/config-ix.cmake
+++ b/openmp/runtime/cmake/config-ix.cmake
@@ -131,8 +131,7 @@ if(WIN32)
elseif(NOT APPLE)
libomp_check_linker_flag(-Wl,-x LIBOMP_HAVE_X_FLAG)
libomp_check_linker_flag(-Wl,--as-needed LIBOMP_HAVE_AS_NEEDED_FLAG)
- libomp_check_linker_flag("-Wl,--version-script=${LIBOMP_SRC_DIR}/exports_so.txt" LIBOMP_HAVE_VERSION_SCRIPT_FLAG)
- libomp_check_linker_flag("-Wl,--undefined-version" LIBOMP_HAVE_UNDEFINED_VERSION_FLAG) # FIXME issue #58858
+ libomp_check_linker_flag("-Wl,--version-script=${LIBOMP_SRC_DIR}/exports_test_so.txt" LIBOMP_HAVE_VERSION_SCRIPT_FLAG)
libomp_check_linker_flag(-static-libgcc LIBOMP_HAVE_STATIC_LIBGCC_FLAG)
libomp_check_linker_flag(-Wl,-z,noexecstack LIBOMP_HAVE_Z_NOEXECSTACK_FLAG)
endif()