mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Telegram: disable stack protector for x86_gcc2 arch (fix build)
This commit is contained in:
@@ -3,7 +3,7 @@ DESCRIPTION="Unofficial build of the original Telegram client for Haiku."
|
||||
HOMEPAGE="https://www.telegram.org/"
|
||||
COPYRIGHT="2013-2022 Telegram"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v$portVersion/tdesktop-$portVersion-full.tar.gz"
|
||||
CHECKSUM_SHA256="d3c78c6daa5b4e336d55dd1dd2dc0003e34dad501e6d212719b51ea8cad71dde"
|
||||
SOURCE_FILENAME="tdesktop-$portVersion-full.tar.gz"
|
||||
@@ -107,6 +107,12 @@ BUILD()
|
||||
{
|
||||
export DISABLE_ASLR=1
|
||||
|
||||
# disable stack protector (fix build for x86_gcc2)
|
||||
if [ $effectiveTargetArchitecture == x86_gcc2 ]; then
|
||||
sed -i -e '/-fstack-protector-all/d' cmake/options_linux.cmake
|
||||
sed -i -e '/_GLIBCXX_ASSERTIONS/d' cmake/options_linux.cmake
|
||||
fi
|
||||
|
||||
# get API_ID and API_HASH from Debian
|
||||
local TELEGRAM_API_ID=`sed -n "/TDESKTOP_API_ID/p" $sourceDir2/rules | cut -d'=' -f2 | cut -d' ' -f1`
|
||||
local TELEGRAM_API_HASH=`sed -n "/TDESKTOP_API_HASH/p" $sourceDir2/rules | cut -d'=' -f2 | cut -d' ' -f1`
|
||||
|
||||
Reference in New Issue
Block a user