diff --git a/scripts/setup-centos9.sh b/scripts/setup-centos9.sh index 1583334cd8608..b9c7a8f701460 100755 --- a/scripts/setup-centos9.sh +++ b/scripts/setup-centos9.sh @@ -178,12 +178,9 @@ function install_duckdb { function install_stemmer { wget_and_untar https://snowballstem.org/dist/libstemmer_c-${STEMMER_VERSION}.tar.gz stemmer - pushd $SCRIPTDIR/../CMake/resolve_dependency_modules/libstemmer - PATCH_DIR=$(pwd) - popd ( cd stemmer - git apply ${PATCH_DIR}/Makefile.patch + sed -i '/CPPFLAGS=-Iinclude/ s/$/ -fPIC/' Makefile make clean && make "-j${NPROC}" ${SUDO} cp libstemmer.a /usr/local/lib/ ${SUDO} cp include/libstemmer.h /usr/local/include/ diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index 2d26bbf707a1a..114ae3b371d24 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -187,12 +187,9 @@ function install_duckdb { function install_stemmer { wget_and_untar https://snowballstem.org/dist/libstemmer_c-${STEMMER_VERSION}.tar.gz stemmer - pushd $SCRIPTDIR/../CMake/resolve_dependency_modules/libstemmer - PATCH_DIR=$(pwd) - popd ( cd stemmer - git apply ${PATCH_DIR}/Makefile.patch + sed -i '/CPPFLAGS=-Iinclude/ s/$/ -fPIC/' Makefile make clean && make "-j${NPROC}" ${SUDO} cp libstemmer.a /usr/local/lib/ ${SUDO} cp include/libstemmer.h /usr/local/include/