Fix linking -latomic on 32 bit operating systems

This commit is contained in:
Andrea Cavalli 2021-03-16 11:32:15 +01:00
parent a02e5dbba8
commit 1541968c58
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ elif [[ "$OPERATING_SYSTEM_NAME" == "linux" ]]; then
if { [[ "$IMPLEMENTATION_NAME" = "tdlib" ]]; } && { [[ "$CPU_ARCHITECTURE_NAME" = "386" ]] || [[ "$CPU_ARCHITECTURE_NAME" = "armv6" ]] || [[ "$CPU_ARCHITECTURE_NAME" = "armv7" ]]; }; then
export CXXFLAGS="$CXXFLAGS"
else
export CXXFLAGS="-static-libgcc -static-libstdc++"
export CXXFLAGS="$CXXFLAGS -static-libgcc -static-libstdc++"
export CC="/usr/bin/clang-11"
export CXX="/usr/bin/clang++-11"
fi