4.x
Merge pull request #20203 from JoeHowse:clMath-patches
core: fix OpenCL runtime compilation with HAVE_OPENCL_STATIC