mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-15 23:33:10 +00:00
NDK r25 has removed GNU Assembler (GAS). Removal of GAS introduced a number of build issues. The most prominent is: /usr/bin/as: unrecognized option '-EL' Some options to solve this: 1. Disable building custom assembly and suffer performance penalty 2. Hand rewrite the custom assembly to be LLVM compatible 3. Wait for upstream to write LLVM compatible assembly (openssl, openssl-1.1) 4. Bring back GAS from NDK r23c In this commit, GAS is brought back as a separate toolchain instead of following NDK r23c file hierarchy. We pass "--gcc-toolchain=GAS_TOOLCHAIN_DIR" to NDK r25 clang to detect. Packages only have to add "termux_step_gnu_as_23c" to build.sh to enable GAS. In the future, we expect packages should follow option 3 more than option 4 as that is a last resort. This commit also bumps revision for packages that rely (or previously rely) on "-fno-integrated-as": hors, libffi, libgcrypt, libpixman, openssl, openssl-1.1 Co-authored-by: Henrik Grimler <grimler@termux.dev> Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com>
19 lines
637 B
Bash
19 lines
637 B
Bash
TERMUX_PKG_HOMEPAGE=http://www.pixman.org/
|
|
TERMUX_PKG_DESCRIPTION="Low-level library for pixel manipulation"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=0.40.0
|
|
TERMUX_PKG_REVISION=3
|
|
TERMUX_PKG_SRCURL=https://cairographics.org/releases/pixman-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=6d200dec3740d9ec4ec8d1180e25779c00bc749f94278c8b9021f5534db223fc
|
|
TERMUX_PKG_BREAKS="libpixman-dev"
|
|
TERMUX_PKG_REPLACES="libpixman-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-libpng"
|
|
|
|
termux_step_pre_configure() {
|
|
if [ "$TERMUX_ARCH" = arm ]; then
|
|
termux_setup_gnu_as_23c
|
|
CFLAGS+=" -fno-integrated-as"
|
|
fi
|
|
}
|