mcfly: Revise compiler-rt builtins hack

%ci:no-build
This commit is contained in:
termux-pacman-bot
2023-04-08 18:31:11 +00:00
parent 2e7e85afb1
commit b229eb0d4e

View File

@@ -7,15 +7,14 @@ TERMUX_PKG_SRCURL=https://github.com/cantino/mcfly/archive/refs/tags/v${TERMUX_P
TERMUX_PKG_SHA256=be9273bc0dd3d4bd5d8e5db6a48f2a92611740905c115e080f7f57fd5637041d
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_ENABLE_CLANG16_PORTING=false
termux_step_pre_configure() {
if [ "$TERMUX_ARCH" == "x86_64" ]; then
local libdir=target/x86_64-linux-android/release/deps
mkdir -p $libdir
pushd $libdir
local libgcc="$($CC -print-libgcc-file-name)"
echo "INPUT($libgcc -l:libunwind.a)" > libgcc.so
RUSTFLAGS+=" -C link-arg=$($CC -print-libgcc-file-name)"
echo "INPUT(-l:libunwind.a)" > libgcc.so
popd
fi
}