[arch-commits] Commit in mlton/trunk (PKGBUILD)
Alexander Rødseth
arodseth at gemini.archlinux.org
Thu Nov 4 08:13:47 UTC 2021
Date: Thursday, November 4, 2021 @ 08:13:47
Author: arodseth
Revision: 1036838
upgpkg: mlton 20210117-3
Modified:
mlton/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-04 07:09:26 UTC (rev 1036837)
+++ PKGBUILD 2021-11-04 08:13:47 UTC (rev 1036838)
@@ -6,7 +6,7 @@
pkgname=mlton
pkgver=20210117
-pkgrel=2
+pkgrel=3
pkgdesc='Whole-program, optimizing Standard ML compiler'
arch=(x86_64)
# no HTTPS available
@@ -20,17 +20,16 @@
prepare() {
cd $pkgname
- setconf Makefile.config RELEASE true
make MLTON_VERSION="$pkgver" version
}
build() {
- make -C $pkgname
+ make -C $pkgname MLTON_COMPILE_ARGS="-link-opt -Wl,-z,relro,-z,now"
}
check() {
- echo 'print("42");' > test.sml
- $pkgname/build/bin/mlton test.sml && x=$(./test) && test $x -eq 42
+ echo 'print("42");' > simple.sml
+ $pkgname/build/bin/mlton simple.sml && test $(./simple) -eq 42
}
package() {
More information about the arch-commits
mailing list