diff options
Diffstat (limited to 'source/d/rust/rust.SlackBuild')
-rwxr-xr-x | source/d/rust/rust.SlackBuild | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/source/d/rust/rust.SlackBuild b/source/d/rust/rust.SlackBuild index 3c261906..d7d2085e 100755 --- a/source/d/rust/rust.SlackBuild +++ b/source/d/rust/rust.SlackBuild @@ -79,7 +79,6 @@ if [ "$ARCH" = "i586" ]; then BARCH="$ARCH" else BARCH="i686" - if case "$( uname -m )" in i586) true ;; *) false ;; esac ; then echo "rust must be bootstrapped from an i686 machine" exit 1 @@ -88,13 +87,11 @@ if [ "$ARCH" = "i586" ]; then else # i586 must be built on a i686 machine, since the bootstrap compiler is i686 BARCH="i686" - if case "$( uname -m )" in i586) true ;; *) false ;; esac ; then echo "rust must be bootstrapped from an i686 machine" exit 1 fi fi - TARCH="$ARCH" elif [ "$ARCH" = "armv7hl" ]; then BARCH="armv7" @@ -120,19 +117,14 @@ PKG=$TMP/package-$PKGNAM #NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" elif [ "$ARCH" = "armv7hl" ]; then - SLKCFLAGS="" LIBDIRSUFFIX="" else - SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi @@ -237,18 +229,8 @@ elif [ "$BARCH" = "i686" ] ; then fi fi -if [ "$ARCH" = "armv7hl" ] ; then - python x.py dist -else - # README.md says gcc 4.7 / clang 3.x or later needed - # but building fails for me with GCC 5.3 from slackware 14.2 - export CC=clang - export CXX=clang++ - CFLAGS="$SLKCFLAGS" \ - CXXFLAGS="$SLKCFLAGS" \ - python x.py dist || exit 1 -fi - +# Build and install: +python x.py dist || exit 1 DESTDIR=$PKG python x.py install || exit 1 # Eh, none of this is all that big. Might as well leave it around as a |