diff --git a/be/cmake/thirdparty.cmake b/be/cmake/thirdparty.cmake index f3bd9867ee0fdd..eddd83528d689d 100644 --- a/be/cmake/thirdparty.cmake +++ b/be/cmake/thirdparty.cmake @@ -112,10 +112,9 @@ add_thirdparty(arrow_dataset LIB64) add_thirdparty(arrow_acero LIB64) add_thirdparty(adbc_driver_manager LIB64) add_thirdparty(parquet LIB64) -# liblance_c.a contains compiler_builtins cbrt symbols. Place libm before it -# so the final linker resolves C math symbols from the system library first. +# Keep lance_c as an imported target only until it has a consumer. Do not add an early m +# dependency here: the toolchain's libm can preempt Doris's optimized compatibility symbols. add_thirdparty(lance_c LIB64 NOTADD) -list(APPEND COMMON_THIRDPARTY m lance_c) add_thirdparty(brpc LIB64) add_thirdparty(rocksdb) add_thirdparty(cyrus-sasl LIBNAME "lib/libsasl2.a")