Fix 32bit builds

This commit is contained in:
Andrea Cavalli 2021-03-15 18:40:14 +01:00
parent be377903b3
commit a402425660

View File

@ -88,7 +88,7 @@ elif [[ "$OPERATING_SYSTEM_NAME" == "linux" ]]; then
export CXXFLAGS="-static-libgcc -static-libstdc++"
fi
if [[ "$CPU_ARCHITECTURE_NAME" = "386" ]]; then
if [[ "$CPU_ARCHITECTURE_NAME" = "386" ]] || [[ "$CPU_ARCHITECTURE_NAME" = "armv6" ]] || [[ "$CPU_ARCHITECTURE_NAME" = "armv7" ]]; then
export CXXFLAGS="$CXXFLAGS -latomic"
export CMAKE_EXE_LINKER_FLAGS="$CMAKE_EXE_LINKER_FLAGS -latomic"
export LDFLAGS="$LDFLAGS -latomic"