Explain how to build a backward compatible binary on Linux

This commit is contained in:
Ilya Fedin 2022-11-08 21:11:28 +04:00 committed by John Preston
parent 0f38dabd84
commit a9c0b817d1
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ Or, to create a debug build, run (also using [your **api_id** and **api_hash**](
-D TDESKTOP_API_ID=YOUR_API_ID \
-D TDESKTOP_API_HASH=YOUR_API_HASH
If you need a backward compatible binary (running on older OS like the official one), you should build the binary with LTO.
To do this, add `-D CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON` option.
The built files will be in the `out` directory.
[api_credentials]: api_credentials.md