aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mdbook
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-08-30 20:54:06 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-08-30 18:58:37 -0300
commit9fa113878450d1d875598b8758d6573ea3d1c7e9 (patch)
tree6adb6c687a4c96aed486d39773b2e800729cd60d /testing/mdbook
parentfd441db85253ec39908341e5264b7461bcb9ff56 (diff)
downloadaports-9fa113878450d1d875598b8758d6573ea3d1c7e9.tar.bz2
aports-9fa113878450d1d875598b8758d6573ea3d1c7e9.tar.xz
testing/mdbook: enable on arches supported by rust >= 1.37.0-r0
* remove unneccesary RUSTFLAGS statements, we default to -crt-static
Diffstat (limited to 'testing/mdbook')
-rw-r--r--testing/mdbook/APKBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/testing/mdbook/APKBUILD b/testing/mdbook/APKBUILD
index 555f5e3344..9940bee423 100644
--- a/testing/mdbook/APKBUILD
+++ b/testing/mdbook/APKBUILD
@@ -4,15 +4,20 @@ pkgver=0.3.1
pkgrel=0
pkgdesc="mdBook is a utility to create modern online books from Markdown files"
url="https://rust-lang-nursery.github.io/mdBook"
-arch="x86_64"
+arch="x86_64 x86 armhf armv7 aarch64 ppc64le" # limited by cargo
license="MPL-2.0"
makedepends="rust cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/rust-lang-nursery/mdBook/archive/v$pkgver.tar.gz"
builddir="$srcdir/mdBook-$pkgver"
export CARGO_HOME="$srcdir"/cargo
-export RUSTFLAGS="-C target-feature=-crt-static"
build() {
+ case "$CARCH" in
+ x86)
+ export CFLAGS="$CFLAGS -fno-stack-protector"
+ ;;
+ esac
+
cargo build --release --verbose
}