Skip to content

Commit

Permalink
fix(x11/qt6-qtdeclarative): Add -flto to LDFLAGS
Browse files Browse the repository at this point in the history
Fixes #21733.
  • Loading branch information
fornwall committed Oct 9, 2024
1 parent 343de5e commit 82af505
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x11-packages/qt6-qtdeclarative/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Classes for QML and JavaScript languages"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="6.8.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://download.qt.io/official_releases/qt/${TERMUX_PKG_VERSION%.*}/${TERMUX_PKG_VERSION}/submodules/qtdeclarative-everywhere-src-${TERMUX_PKG_VERSION}.tar.xz"
TERMUX_PKG_SHA256=3b41a36b42e919a3aa0da1f71107591504200f41707bee2ad8e8d4f99b5644c2
TERMUX_PKG_DEPENDS="libc++, qt6-qtbase"
Expand Down Expand Up @@ -52,6 +53,11 @@ termux_step_host_build() {
termux_step_pre_configure() {
termux_setup_cmake
termux_setup_ninja

# The -flto flag seems to be used only when compiling and not linking,
# which breaks the NDK clang fallback to emulated TLS - see
# https://github.com/termux/termux-packages/issues/21733:
LDFLAGS+=" -flto"
}

termux_step_make_install() {
Expand Down

0 comments on commit 82af505

Please sign in to comment.