[arch-commits] Commit in ponyc/trunk (PKGBUILD gcc7.patch)
Felix Yan
felixonmars at archlinux.org
Fri Jul 21 08:28:37 UTC 2017
Date: Friday, July 21, 2017 @ 08:28:36
Author: felixonmars
Revision: 245914
upgpkg: ponyc 0.15.0-1
Added:
ponyc/trunk/gcc7.patch
Modified:
ponyc/trunk/PKGBUILD
------------+
PKGBUILD | 17 +++++++++++++----
gcc7.patch | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-21 08:13:01 UTC (rev 245913)
+++ PKGBUILD 2017-07-21 08:28:36 UTC (rev 245914)
@@ -2,8 +2,8 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=ponyc
-pkgver=0.13.1
-pkgrel=2
+pkgver=0.15.0
+pkgrel=1
pkgdesc='An actor model, capabilities, high performance programming language'
url='http://ponylang.org/'
arch=('x86_64')
@@ -13,9 +13,18 @@
checkdepends=('pcre2')
options=('!strip')
optdepends=('pcre2: Needed for the regex package.')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ponylang/ponyc/archive/$pkgver.tar.gz")
-sha512sums=('e5e41e1e92b5d3fb0a7ee4df8f8ab7c9cec18511435b51f6047a35c6f16d365b0ff6e112fb19505e273a3c9c83e36766edc6f141125afcaaa90b887a5295db05')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ponylang/ponyc/archive/$pkgver.tar.gz"
+ gcc7.patch)
+sha512sums=('ddd73714ce2d8b38231b5e45facbc1bf554f4914cf85544ada846e22893927b5e5f81f3edbcbd254ae5d1804e01ce969b3373b48309af1cd5482a0be91a72264'
+ '5e13a430396995141591efb1c2194f1a0039119536b7eb7f7278d9535553ee466f2f48b8b90a536039dd78e149575ca0ff456dd1c8f6615d01f75401eedd88d6')
+prepare() {
+ cd ponyc-$pkgver
+ sed -i 's/-Werror //' Makefile
+
+ patch -p1 -i "$srcdir"/gcc7.patch
+}
+
build() {
cd ponyc-$pkgver
make config=release prefix=/usr arch=x86-64 verbose=
Added: gcc7.patch
===================================================================
--- gcc7.patch (rev 0)
+++ gcc7.patch 2017-07-21 08:28:36 UTC (rev 245914)
@@ -0,0 +1,34 @@
+diff --git a/src/libponyc/codegen/genexe.c b/src/libponyc/codegen/genexe.c
+index 304a6f675..a063818d8 100644
+--- a/src/libponyc/codegen/genexe.c
++++ b/src/libponyc/codegen/genexe.c
+@@ -277,7 +277,7 @@ static bool link_exe(compile_t* c, ast_t* program,
+ #ifdef PONY_USE_LTO
+ "-flto -fuse-linker-plugin "
+ #endif
+- "%s %s %s %s -lpthread %s -lm %s",
++ "%s %s %s %s -lpthread -latomic %s -lm %s",
+ linker, file_exe, arch, mcx16_arg, fuseld, file_o, lib_args, ponyrt, ldl,
+ export
+ );
+diff --git a/Makefile b/Makefile
+index a795d8f57..dd8923b97 100644
+--- a/Makefile
++++ b/Makefile
+@@ -437,11 +437,11 @@ libponyc.benchmarks.links = libgbenchmark libponyc libponyrt llvm
+ libponyrt.benchmarks.links = libgbenchmark libponyrt
+
+ ifeq ($(OSTYPE),linux)
+- ponyc.links += libpthread libdl
+- libponyc.tests.links += libpthread libdl
+- libponyrt.tests.links += libpthread libdl
+- libponyc.benchmarks.links += libpthread libdl
+- libponyrt.benchmarks.links += libpthread libdl
++ ponyc.links += libpthread libdl libatomic
++ libponyc.tests.links += libpthread libdl libatomic
++ libponyrt.tests.links += libpthread libdl libatomic
++ libponyc.benchmarks.links += libpthread libdl libatomic
++ libponyrt.benchmarks.links += libpthread libdl libatomic
+ endif
+
+
\ No newline at end of file
More information about the arch-commits
mailing list