Add gcc variant

This commit is contained in:
Andrea Cavalli 2023-06-05 16:51:39 +02:00
parent a6e3e41583
commit 241e88190b
4 changed files with 2 additions and 20 deletions

View File

@ -43,7 +43,7 @@ cd ../../../
export CMAKE_C_FLAGS="${CMAKE_C_FLAGS}"
export CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti"
export CMAKE_SHARED_LINKER_FLAGS="${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--exclude-libs,ALL"
export CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -flto=n -Os"
export CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -flto -fuse-linker-plugin -Os"
# Build tdlib
cd implementations/tdlight/build

View File

@ -43,7 +43,7 @@ cd ../../../
export CMAKE_C_FLAGS="${CMAKE_C_FLAGS}"
export CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti"
export CMAKE_SHARED_LINKER_FLAGS="${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--exclude-libs,ALL"
export CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -flto=n -Os"
export CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -flto -fuse-linker-plugin -Os"
# Build tdlib
cd implementations/tdlight/build

View File

@ -1,9 +0,0 @@
#!/bin/bash -ex
# Ubuntu 20.04
export DEBIAN_FRONTEND=noninteractive
apt-get --assume-yes update
# Install dependencies
apt-get --assume-yes install build-essential

View File

@ -1,9 +0,0 @@
#!/bin/bash -ex
# Ubuntu 22.04
export DEBIAN_FRONTEND=noninteractive
apt-get --assume-yes update
# Install dependencies
apt-get --assume-yes install build-essential