[arch-commits] Commit in mlton/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Thu Aug 10 11:04:40 UTC 2017
Date: Thursday, August 10, 2017 @ 11:04:40
Author: arodseth
Revision: 249708
mlton without smlnj bootstrapping for x86_64 / -fPIC
Modified:
mlton/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++------------
1 file changed, 17 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-10 10:44:40 UTC (rev 249707)
+++ PKGBUILD 2017-08-10 11:04:40 UTC (rev 249708)
@@ -1,6 +1,6 @@
# $Id$
# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: mkoloberdin <my at aprisobal.by>
+# Contributor: Michael Koloberdin <koloberdin at gmail.com>
# Contributor: tochiro at no.spam.mail.berlios.de
# Contributor: Andreas W. Hauser <andy-aur at splashground.de>
# Contributor: Brian De Wolf <arch at bldewolf.com>
@@ -7,7 +7,7 @@
pkgname=mlton
pkgver=20170725
-pkgrel=2
+pkgrel=3
pkgdesc='Whole-program, optimizing Standard ML compiler'
arch=('x86_64' 'i686')
url='http://mlton.org/'
@@ -14,7 +14,7 @@
license=('BSD' 'MIT' 'LGPL')
depends=('gmp')
makedepends=('git' 'mlton')
-makedepends_x86_64=('smlnj' 'setconf')
+#makedepends_x86_64=('smlnj' 'setconf')
options=('staticlibs')
source=("git+https://github.com/MLton/mlton#commit=159190284e1268fded189104705939fe3b691b12")
md5sums=('SKIP')
@@ -23,9 +23,11 @@
cd "$pkgname"
sed 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' -i runtime/cenv.h
- if [ $CARCH = 'x86_64' ]; then
- find . -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
- fi
+
+ # Needed for bootstrapping mlton on x86_64
+ #if [ $CARCH = 'x86_64' ]; then
+ # find . -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
+ #fi
}
build() {
@@ -32,12 +34,15 @@
export CFLAGS="$CFLAGS -fPIC"
export COMPILE_ARGS="-codegen c -cc-opt '-fPIC'"
- if [ "$CARCH" = 'x86_64' ]; then
- # Bootstrap with SML-NJ on x86_64
- make -C "$pkgname" -j1 smlnj-mlton all-no-docs
- else
- make -C "$pkgname" -j1 all-no-docs
- fi
+ # Needed for bootstrapping mlton on x86_64
+ #if [ "$CARCH" = 'x86_64' ]; then
+ # # Bootstrap with SML-NJ on x86_64
+ # make -C "$pkgname" -j1 smlnj-mlton all-no-docs
+ #else
+ # make -C "$pkgname" -j1 all-no-docs
+ #fi
+
+ make -C "$pkgname" -j1 all-no-docs
}
package() {
More information about the arch-commits
mailing list