Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Apr 3, 2024
1 parent 5fd06fe commit 6d2c441
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/setup-centos7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6d2c441

Please sign in to comment.