Commit 7bd21b56 authored by Jakub Jirutka's avatar Jakub Jirutka

testing/crystal: minor changes in abuild

parent e0c7bc6d
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
# TODO: Fix SSL bindings for LibreSSL (it's probably broken).
# TODO: Fix SSL bindings for LibreSSL (https://github.com/crystal-lang/crystal/issues/4676)
pkgname=crystal
pkgver=0.24.2
pkgrel=1
......@@ -36,7 +36,7 @@ export CRYSTAL_CACHE_DIR="$srcdir/.cache"
# we can also use prebuilt binary from upstream if needed.
snapshot() {
local binary="$builddir/.build/crystal"
local tarname="$pkgname-$pkgver-$CHOST"
local tarname="$pkgname-$pkgver-$CTARGET"
if [ ! -f "$binary" ] || ! file "$binary" | grep -qw 'statically linked'; then
msg "Building statically linked crystal..."
......@@ -64,9 +64,7 @@ prepare() {
release = 1
threads = ${JOBS:-2}
verbose = 1
EXTRA_FLAGS = --target $CTARGET ${BUILD_STATIC:+"--link-flags=-no-pie"}
CFLAGS = $CFLAGS
CXXFLAGS = $CXXFLAGS
EXTRA_FLAGS = --verbose --target $CTARGET ${BUILD_STATIC:+"--link-flags=-no-pie"}
LLVM_CONFIG = /usr/lib/llvm$_llvmver/bin/llvm-config
EOF
}
......@@ -76,7 +74,7 @@ build() {
make crystal \
CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
PATH="$srcdir/$pkgname-$_bootver-$CHOST/bin:$PATH" \
PATH="$srcdir/$pkgname-$_bootver-$CBUILD/bin:$PATH" \
static=${BUILD_STATIC:-}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment