mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-08 20:03:20 +00:00
mcfly: Revise compiler-rt builtins hack
%ci:no-build
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user