aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/mrustc/mrustc.SlackBuild14
-rw-r--r--development/mrustc/mrustc.info8
2 files changed, 15 insertions, 7 deletions
diff --git a/development/mrustc/mrustc.SlackBuild b/development/mrustc/mrustc.SlackBuild
index 462e8685cb779..1f1a64d468228 100644
--- a/development/mrustc/mrustc.SlackBuild
+++ b/development/mrustc/mrustc.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mrustc
-GITREV=${GITREV:-5d4bf9e96d795623f1b32b2f1f2e57c4f74419fe}
+GITREV=${GITREV:-346da1865a49d7fd354e7aa4e8b5712a2df35a22}
VERSION=${VERSION:-git$(echo "$GITREV" | sed 's/^\(.\{7\}\).*$/\1/')}
RUSTCVERSION=${RUSTCVERSION:-1.19.0}
BUILD=${BUILD:-1}
@@ -55,8 +55,16 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ] ; then
- RUSTC_TARGET="arm-unknown-linux-gnueabi"
- SLKCFLAGS="-O2"
+ if readelf -h /bin/bash | grep Flags | grep hard > /dev/null 2>&1 ; then
+ # hardfloat
+ RUSTC_TARGET="armv7-unknown-linux-gnueabihf"
+ SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
+ else
+ # softfloat
+ RUSTC_TARGET="arm-unknown-linux-gnueabi"
+ SLKCFLAGS="-O2 -march=armv5te"
+ fi
+
LIBDIRSUFFIX=""
else
SLKCFLAGS="-O2"
diff --git a/development/mrustc/mrustc.info b/development/mrustc/mrustc.info
index df30d5e42a012..d1c9dde249475 100644
--- a/development/mrustc/mrustc.info
+++ b/development/mrustc/mrustc.info
@@ -1,9 +1,9 @@
PRGNAM="mrustc"
-VERSION="git5d4bf9e"
+VERSION="git346da18"
HOMEPAGE="https://github.com/thepowersgang/mrustc"
-DOWNLOAD="https://github.com/thepowersgang/mrustc/archive/5d4bf9e96d795623f1b32b2f1f2e57c4f74419fe/mrustc-5d4bf9e96d795623f1b32b2f1f2e57c4f74419fe.tar.gz \
- https://static.rust-lang.org/dist/rustc-1.19.0-src.tar.xz"
-MD5SUM="1c134fa4842a13216542fde8779262de \
+DOWNLOAD="https://github.com/thepowersgang/mrustc/archive/346da1865a49d7fd354e7aa4e8b5712a2df35a22/mrustc-346da1865a49d7fd354e7aa4e8b5712a2df35a22.tar.gz \
+ https://static.rust-lang.org/dist/rustc-1.19.0-src.tar.xz"
+MD5SUM="58ad7b9da4c756e8737fc0c4c5a93b3a \
e9af5bb321c0cad44ea0e3e2c644ab2f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""