diff --git a/turbo/silkworm/silkworm_compat_check.sh b/turbo/silkworm/silkworm_compat_check.sh index 664d3f6db..80c3d1b3b 100755 --- a/turbo/silkworm/silkworm_compat_check.sh +++ b/turbo/silkworm/silkworm_compat_check.sh @@ -11,6 +11,17 @@ function glibc_version { $cmd | head -1 | awk '{ print $NF }' } +function glibcpp_version { + link_path=$(/sbin/ldconfig -p | grep libstdc++ | awk '{ print $NF }') + if [[ ! -L "$link_path" ]] + then + echo "0" + else + file_name=$(readlink "$link_path") + echo "${file_name##*.}" + fi +} + function version_major { IFS='.' read -a components <<< "$1" echo "${components[0]}" @@ -59,6 +70,13 @@ case $(uname -s) in exit 4 fi + version=$(glibcpp_version) + if (( version < 30 )) + then + echo "not supported glibcpp version: $version" + exit 5 + fi + ;; Darwin) ;;