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

@ -12,8 +12,8 @@ jobs:
strategy:
matrix:
include:
- {os: ubuntu-20.04, usedocker: "true", arch: "linux/386", implementation: "tdlight" }
- {os: ubuntu-20.04, usedocker: "true", arch: "linux/386", implementation: "tdlib" }
- {os: ubuntu-20.04, usedocker: "true", arch: "linux/386", implementation: "tdlight"}
- {os: ubuntu-20.04, usedocker: "true", arch: "linux/386", implementation: "tdlib"}
- {os: ubuntu-20.04, usedocker: "false", arch: "linux/amd64", implementation: "tdlight"}
- {os: ubuntu-20.04, usedocker: "false", arch: "linux/amd64", implementation: "tdlib"}
- {os: ubuntu-20.04, usedocker: "true", arch: "linux/arm/v6", implementation: "tdlight"}

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