[arch-commits] Commit in mlton/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Mon Aug 7 13:50:17 UTC 2017
Date: Monday, August 7, 2017 @ 13:50:16
Author: arodseth
Revision: 249443
upgpkg: mlton 20170725-2
Modified:
mlton/trunk/PKGBUILD
----------+
PKGBUILD | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-07 13:49:26 UTC (rev 249442)
+++ PKGBUILD 2017-08-07 13:50:16 UTC (rev 249443)
@@ -13,8 +13,8 @@
url='http://mlton.org/'
license=('BSD' 'MIT' 'LGPL')
depends=('gmp')
-makedepends=('git' 'setconf' 'mlton')
-makedepends_x86_64=('smlnj')
+makedepends=('git' 'mlton')
+makedepends_x86_64=('smlnj' 'setconf')
options=('staticlibs')
source=("git+https://github.com/MLton/mlton#commit=159190284e1268fded189104705939fe3b691b12")
md5sums=('SKIP')
@@ -23,7 +23,9 @@
cd "$pkgname"
sed 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' -i runtime/cenv.h
- find . -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
+ if [ $CARCH = 'x86_64' ]; then
+ find . -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
+ fi
}
build() {
@@ -30,7 +32,7 @@
export CFLAGS="$CFLAGS -fPIC"
export COMPILE_ARGS="-codegen c -cc-opt '-fPIC'"
- if [ $arch = 'x86_64' ]; then
+ if [ "$CARCH" = 'x86_64' ]; then
# Bootstrap with SML-NJ on x86_64
make -C "$pkgname" -j1 smlnj-mlton all-no-docs
else
More information about the arch-commits
mailing list