Commit 856faeea authored by Jakub Jirutka's avatar Jakub Jirutka

testing/rust: remove unneeded crt*.o files

parent 2f952ff8
......@@ -13,7 +13,7 @@ license="ASL-2.0 BSD ISC MIT"
# gcc is needed at runtime just for linking. Someday rustc might invoke
# the linker directly, and then we'll only need binutils.
# See:
depends="$pkgname-stdlib=$pkgver-r$pkgrel gcc"
depends="$pkgname-stdlib=$pkgver-r$pkgrel gcc musl-dev"
# libffi-dev is needed just because we compile llvm with LLVM_ENABLE_FFI.
makedepends="cmake file libffi-dev libunwind-dev llvm llvm-dev
musl-dev python2 tar zlib-dev"
......@@ -117,6 +117,9 @@ package() {
# them. Read change-rpath-to-rustlib.patch for more info.
rm -r usr/lib/*.so
# These objects are for static linking with musl on non-musl systems.
rm $_rlibdir/crt*.o
# Shared objects should have executable flag.
chmod +x $_rlibdir/*.so
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment