mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
rust: try to fix target triples on i686/x86_64-musl.
This commit is contained in:
parent
9ad8a8ea7b
commit
cb21773459
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,6 @@ wrksrc="rustc-${version/.beta/-beta}"
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
build_style=configure
|
build_style=configure
|
||||||
only_for_archs="x86_64 x86_64-musl i686 i686-musl"
|
only_for_archs="x86_64 x86_64-musl i686 i686-musl"
|
||||||
configure_args="--prefix=/usr --disable-docs --build=$(gcc -dumpmachine)"
|
|
||||||
hostmakedepends="pkg-config curl python"
|
hostmakedepends="pkg-config curl python"
|
||||||
short_desc="A safe, concurrent, practical systems language"
|
short_desc="A safe, concurrent, practical systems language"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -15,6 +14,12 @@ license="MIT, Apache-2.0"
|
||||||
distfiles="https://static.rust-lang.org/dist/rustc-${version/.beta/-beta}-src.tar.gz"
|
distfiles="https://static.rust-lang.org/dist/rustc-${version/.beta/-beta}-src.tar.gz"
|
||||||
checksum=cb09f443b37ec1b81fe73c04eb413f9f656859cf7d00bc5088008cbc2a63fa8a
|
checksum=cb09f443b37ec1b81fe73c04eb413f9f656859cf7d00bc5088008cbc2a63fa8a
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
ln -sf x86_64-unknown-linux-gnu.mk mk/cfg/x86_64-linux-gnu.mk
|
||||||
|
ln -sf i686-unknown-linux-gnu.mk mk/cfg/i686-pc-linux-gnu.mk
|
||||||
|
ln -sf x86_64-unknown-linux-musl.mk mk/cfg/x86_64-linux-musl.mk
|
||||||
|
./configure --musl-root=/usr --prefix=/usr --disable-docs --enable-ccache --build=$XBPS_TRIPLET
|
||||||
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYRIGHT
|
vlicense COPYRIGHT
|
||||||
vlicense LICENSE-APACHE
|
vlicense LICENSE-APACHE
|
||||||
|
|
Loading…
Add table
Reference in a new issue