From 27e52d0a3417aee118f7005bc2857dc231352b9f Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Thu, 15 Dec 2016 11:04:22 +0000 Subject: [PATCH] ponyc: fix pie --- srcpkgs/ponyc/patches/fix-pie.patch | 11 +++++++++++ srcpkgs/ponyc/template | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ponyc/patches/fix-pie.patch diff --git a/srcpkgs/ponyc/patches/fix-pie.patch b/srcpkgs/ponyc/patches/fix-pie.patch new file mode 100644 index 00000000000..0aed20bb26d --- /dev/null +++ b/srcpkgs/ponyc/patches/fix-pie.patch @@ -0,0 +1,11 @@ +--- Makefile.orig 2016-11-11 22:56:59.000000000 +0000 ++++ Makefile 2016-12-15 11:01:02.068138423 +0000 +@@ -93,7 +93,7 @@ + LIB_EXT ?= a + BUILD_FLAGS = -march=$(arch) -Werror -Wconversion \ + -Wno-sign-conversion -Wextra -Wall +-LINKER_FLAGS = -march=$(arch) ++LINKER_FLAGS = -march=$(arch) $(LDFLAGS) + AR_FLAGS ?= rcs + ALL_CFLAGS = -std=gnu11 -fexceptions \ + -DPONY_VERSION=\"$(tag)\" -DLLVM_VERSION=\"$(llvm_version)\" \ diff --git a/srcpkgs/ponyc/template b/srcpkgs/ponyc/template index 57c78ebafe4..7b303053a50 100644 --- a/srcpkgs/ponyc/template +++ b/srcpkgs/ponyc/template @@ -12,7 +12,6 @@ license="BSD" homepage="http://ponylang.org/" distfiles="https://github.com/CausalityLtd/ponyc/archive/${version}.tar.gz" checksum=0cae437e66ab028a08a658278635dbc47e6e541d7b7dabe3bcfaa035126fa3a2 -nopie=yes do_build() { make config=release destdir=/usr/lib/pony/${version} prefix=/usr