ponyc: fix pie

This commit is contained in:
Michael Gehring 2016-12-15 11:04:22 +00:00
parent 807df3eab9
commit 27e52d0a34
2 changed files with 11 additions and 1 deletions

View file

@ -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)\" \

View file

@ -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