diff --git a/ext/crlib/cr-math.h b/ext/crlib/cr-math.h index 9a0efc8..990318a 100644 --- a/ext/crlib/cr-math.h +++ b/ext/crlib/cr-math.h @@ -23,6 +23,11 @@ #include +// avoid linking to GLIBC_2.27 +#if defined (CR_LINUX) && !defined (CR_CXX_INTEL) && defined (CR_ARCH_X86) + __asm__ (".symver powf,powf@GLIBC_2.0"); +#endif + CR_NAMESPACE_BEGIN constexpr float kFloatEpsilon = 0.01f;