diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-12-07 20:55:46 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-12-07 20:57:54 +0000 |
commit | bb35b52f490f391b20885221e95d672e4b711dd6 (patch) | |
tree | c8cf558c8586ce80015a293d75cb13ab479f8672 | |
parent | 79bd4a28310ef92e3cd28d7c476a20e2d0ea724f (diff) | |
download | ports-bb35b52f490f391b20885221e95d672e4b711dd6.tar.gz ports-bb35b52f490f391b20885221e95d672e4b711dd6.zip |
devel/opencl-clang: fix build with lld 17
Building devel/opencl-clang with lld 17 results in the following link
error:
ld: error: version script assignment of 'global' to symbol 'CheckLinkOptions' failed: symbol not defined
ld: error: version script assignment of 'global' to symbol 'Link' failed: symbol not defined
ld: error: version script assignment of 'global' to symbol 'GetKernelArgInfo' failed: symbol not defined
The mentioned symbols are no longer in common_clang.cpp, so remove them
from the linker version script.
PR: 273753
MFH: 2023Q4
-rw-r--r-- | devel/opencl-clang/files/patch-common__clang.map | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/opencl-clang/files/patch-common__clang.map b/devel/opencl-clang/files/patch-common__clang.map new file mode 100644 index 000000000000..1189d6c1655a --- /dev/null +++ b/devel/opencl-clang/files/patch-common__clang.map @@ -0,0 +1,13 @@ +--- common_clang.map.orig 2022-08-31 01:41:40 UTC ++++ common_clang.map +@@ -2,10 +2,7 @@ global: + global: + extern "C" { + CheckCompileOptions; +- CheckLinkOptions; + Compile; +- Link; +- GetKernelArgInfo; + PCM_OPENCL_C_H*; + PCM_OPENCL_C_BASE_H*; + }; |