From 6d2c441db4eecf9662e103d19d3ae9ea616deef0 Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Wed, 3 Apr 2024 20:50:41 +0800 Subject: [PATCH] Initial commit --- scripts/setup-centos7.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/setup-centos7.sh b/scripts/setup-centos7.sh index e8458f247967..39a453de4a53 100755 --- a/scripts/setup-centos7.sh +++ b/scripts/setup-centos7.sh @@ -26,7 +26,7 @@ export CFLAGS=$(get_cxx_flags $CPU_TARGET) # Used by LZO. export CXXFLAGS=$CFLAGS # Used by boost. export CPPFLAGS=$CFLAGS # Used by LZO. export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH -FB_OS_VERSION=v2023.12.04.00 +FB_OS_VERSION=v2024.02.26.00 # shellcheck disable=SC2037 SUDO="sudo -E" @@ -44,13 +44,6 @@ function yum_install { $SUDO yum install -y "$@" } -function cmake_install_deps { - cmake -B"$1-build" -GNinja -DCMAKE_CXX_STANDARD=17 \ - -DCMAKE_CXX_FLAGS="${CFLAGS}" -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -Wno-dev "$@" - ninja -C "$1-build" - $SUDO ninja -C "$1-build" install -} - function wget_and_untar { local URL=$1 local DIR=$2 @@ -246,7 +239,7 @@ dnf_install epel-release dnf-plugins-core # For ccache, ninja # dnf config-manager --set-enabled powertools dnf_install ccache git wget which libevent-devel \ openssl-devel libzstd-devel lz4-devel double-conversion-devel \ - curl-devel cmake libxml2-devel libgsasl-devel libuuid-devel patch + curl-devel libxml2-devel libgsasl-devel libuuid-devel patch $SUDO dnf remove -y gflags