From 84c63f13505daa7a369faa321c12a7e95fa4492f Mon Sep 17 00:00:00 2001 From: HappenLee Date: Thu, 27 Aug 2020 20:53:28 +0800 Subject: [PATCH] [Bug] replace libltdl.so when compile the unixodbc library (#4461) --- be/CMakeLists.txt | 2 +- thirdparty/build-thirdparty.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }