Fix #12138 - use cc
on OpenBSD and link libm
#14672
Merged
cc
on OpenBSD and link libm
#14672