[libomp] Add -Wl,--undefined-version workaround
authorFangrui Song <i@maskray.me>
Mon, 7 Nov 2022 22:15:28 +0000 (22:15 +0000)
committerFangrui Song <i@maskray.me>
Mon, 7 Nov 2022 22:15:28 +0000 (22:15 +0000)
commit432a7e284440c719637fe34b972c96c9af0e01f1
tree60f3347305a44910e43a3615f765451e2530607a
parenteedbe44b8755f7d162eee43cb3e8c9da1e61ebad
[libomp] Add -Wl,--undefined-version workaround

Issue #58858: when linking libomp.so, exports_so.txt has non-existent/undefined
symbols which cause errors to ld --no-undefined-version. Use
-Wl,--undefined-version if available (gold, ld.lld, future GNU ld 2.40).
openmp/runtime/cmake/LibompHandleFlags.cmake
openmp/runtime/cmake/config-ix.cmake