(In reply to Vitaly Zaitsev from comment #5) > Override specified in > https://github.com/telegramdesktop/tdesktop/blob/v0.10.11/Telegram/gyp/ > telegram_linux.gypi#L66 (lines 65 - 93). Try patching the file to this (untested) 'configurations': { 'Release': { 'cflags': [ '$(RPM_OPT_FLAGS)', ], 'cflags_cc': [ '$(RPM_OPT_FLAGS)', ], 'ldflags': [ '$(RPM_LD_FLAGS)', ], }, },