diff options
author | 2018-05-28 18:30:25 +0200 | |
---|---|---|
committer | 2018-05-29 08:25:40 +0200 | |
commit | e93f3d4c758e1db71adb786c4c0a02825f5a3bd6 (patch) | |
tree | 5bd3ab5e826ba4aec96c32ee96c0e50583e78810 /dev-util/cargo/cargo-0.26.0.ebuild | |
parent | app-crypt/mit-krb5: remove vulnerable (diff) | |
download | gentoo-e93f3d4c758e1db71adb786c4c0a02825f5a3bd6.tar.gz gentoo-e93f3d4c758e1db71adb786c4c0a02825f5a3bd6.tar.bz2 gentoo-e93f3d4c758e1db71adb786c4c0a02825f5a3bd6.zip |
dev-util/cargo: enable arm hard- and softfloat
Diffstat (limited to 'dev-util/cargo/cargo-0.26.0.ebuild')
-rw-r--r-- | dev-util/cargo/cargo-0.26.0.ebuild | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-util/cargo/cargo-0.26.0.ebuild b/dev-util/cargo/cargo-0.26.0.ebuild index e913e3df62f4..3d049bc2ded6 100644 --- a/dev-util/cargo/cargo-0.26.0.ebuild +++ b/dev-util/cargo/cargo-0.26.0.ebuild @@ -151,6 +151,11 @@ SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz amd64? ( https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-x86_64-unknown-linux-gnu.tar.gz ) + arm? ( + https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-arm-unknown-linux-gnueabi.tar.gz + https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-arm-unknown-linux-gnueabihf.tar.gz + https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-armv7-unknown-linux-gnueabihf.tar.gz + ) arm64? ( https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-aarch64-unknown-linux-gnu.tar.gz )" @@ -168,6 +173,12 @@ elif [[ ${ARCH} = "x86" ]]; then TRIPLE="i686-unknown-linux-gnu" elif [[ ${ARCH} = "arm64" ]]; then TRIPLE="aarch64-unknown-linux-gnu" +elif [[ "$(tc-is-softfloat)" != "no" ]] && [[ ${CHOST} == armv6* ]]; then + TRIPLE="arm-unknown-linux-gnueabi" +elif [[ ${CHOST} == armv6*h* ]]; then + TRIPLE="arm-unknown-linux-gnueabihf" +elif [[ ${CHOST} == armv7*h* ]]; then + TRIPLE="armv7-unknown-linux-gnueabihf" fi COMMON_DEPEND="sys-libs/zlib |