Fix linking -latomic on 32 bit operating systems
This commit is contained in:
parent
a02e5dbba8
commit
1541968c58
4
.github/workflows/platform_natives.yaml
vendored
4
.github/workflows/platform_natives.yaml
vendored
@ -12,8 +12,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: ubuntu-20.04, usedocker: "true", arch: "linux/386", implementation: "tdlight" }
|
- {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: "tdlib"}
|
||||||
- {os: ubuntu-20.04, usedocker: "false", arch: "linux/amd64", implementation: "tdlight"}
|
- {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: "false", arch: "linux/amd64", implementation: "tdlib"}
|
||||||
- {os: ubuntu-20.04, usedocker: "true", arch: "linux/arm/v6", implementation: "tdlight"}
|
- {os: ubuntu-20.04, usedocker: "true", arch: "linux/arm/v6", implementation: "tdlight"}
|
||||||
|
@ -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
|
if { [[ "$IMPLEMENTATION_NAME" = "tdlib" ]]; } && { [[ "$CPU_ARCHITECTURE_NAME" = "386" ]] || [[ "$CPU_ARCHITECTURE_NAME" = "armv6" ]] || [[ "$CPU_ARCHITECTURE_NAME" = "armv7" ]]; }; then
|
||||||
export CXXFLAGS="$CXXFLAGS"
|
export CXXFLAGS="$CXXFLAGS"
|
||||||
else
|
else
|
||||||
export CXXFLAGS="-static-libgcc -static-libstdc++"
|
export CXXFLAGS="$CXXFLAGS -static-libgcc -static-libstdc++"
|
||||||
export CC="/usr/bin/clang-11"
|
export CC="/usr/bin/clang-11"
|
||||||
export CXX="/usr/bin/clang++-11"
|
export CXX="/usr/bin/clang++-11"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user