Add gcc variant
This commit is contained in:
parent
a6e3e41583
commit
241e88190b
|
@ -43,7 +43,7 @@ cd ../../../
|
||||||
export CMAKE_C_FLAGS="${CMAKE_C_FLAGS}"
|
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_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_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
|
# Build tdlib
|
||||||
cd implementations/tdlight/build
|
cd implementations/tdlight/build
|
||||||
|
|
|
@ -43,7 +43,7 @@ cd ../../../
|
||||||
export CMAKE_C_FLAGS="${CMAKE_C_FLAGS}"
|
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_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_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
|
# Build tdlib
|
||||||
cd implementations/tdlight/build
|
cd implementations/tdlight/build
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
|
Loading…
Reference in New Issue