diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 50546ee881..b2b3b7904f 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -466,7 +466,7 @@ else() endif() set(DORIS_LINK_LIBS ${DORIS_LINK_LIBS} - -lrt -lbfd -liberty -lc -lm -ldl -lltdl -pthread + -lrt -lbfd -liberty -lc -lm -ldl -pthread ) # Set libraries for test diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh index 0202cca3c2..ccc8e658f9 100755 --- a/thirdparty/build-thirdparty.sh +++ b/thirdparty/build-thirdparty.sh @@ -529,7 +529,7 @@ build_libunixodbc() { CPPFLAGS="-I${TP_INCLUDE_DIR}" \ LDFLAGS="-L${TP_LIB_DIR}" \ CFLAGS="-fPIC" \ - ./configure --prefix=$TP_INSTALL_DIR --enable-static=yes + ./configure --prefix=$TP_INSTALL_DIR --with-included-ltdl --enable-static=yes make -j$PARALLEL && make install }