Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(x11/wine-stable): fix building after toolchain upgrade #21927

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions x11-packages/wine-stable/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ LICENSE.OLD
COPYING.LIB"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=9.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://dl.winehq.org/wine/source/${TERMUX_PKG_VERSION:0:3}/wine-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=7cfd090a5395f5b76d95bb5defac8a312c8de4c070c1163b8b58da38330ca6ee
TERMUX_PKG_DEPENDS="fontconfig, freetype, krb5, libandroid-spawn, libc++, libgmp, libgnutls, libxcb, libxcomposite, libxcursor, libxfixes, libxrender, mesa, opengl, pulseaudio, sdl2, vulkan-loader, xorg-xrandr"
Expand Down Expand Up @@ -122,6 +123,17 @@ termux_step_pre_configure() {
LDFLAGS="${LDFLAGS/-Wl,-z,relro,-z,now/}"

LDFLAGS+=" -landroid-spawn"

if [ "$TERMUX_ARCH" = "x86_64" ]; then
mkdir -p "$TERMUX_PKG_TMPDIR/bin"
cat <<- EOF > "$TERMUX_PKG_TMPDIR/bin/x86_64-linux-android-clang"
#!/bin/bash
set -- "\${@/-mabi=ms/}"
exec $TERMUX_STANDALONE_TOOLCHAIN/bin/x86_64-linux-android-clang "\$@"
EOF
chmod +x "$TERMUX_PKG_TMPDIR/bin/x86_64-linux-android-clang"
export PATH="$TERMUX_PKG_TMPDIR/bin:$PATH"
fi
}

termux_step_make_install() {
Expand Down