From 769529597ce4573ae1dd0c8fb732c1e0ca933f68 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Wed, 7 Sep 2016 05:58:01 +0200 Subject: [PATCH] iniparser: fix PIE --- srcpkgs/iniparser/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/iniparser/template b/srcpkgs/iniparser/template index 8749145e28b..db22049be51 100644 --- a/srcpkgs/iniparser/template +++ b/srcpkgs/iniparser/template @@ -1,7 +1,7 @@ # Template file for 'iniparser' pkgname=iniparser version=4.0 -revision=3 +revision=4 build_style=gnu-makefile hostmakedepends="doxygen chrpath" short_desc="A free stand-alone ini file parsing library" @@ -14,6 +14,10 @@ checksum=e0bbd664bb3f0d64c21ac2d67a843b1c7a3a9710e96393344d170ab8b33e92ba CFLAGS="-fPIC" post_build() { + sed -i example/Makefile \ + -e"s;^\(CFLAGS.*=.*\);& $CFLAGS;" \ + -e"s;^\(LFLAGS.*=.*\);& $LDFLAGS;" \ + -e's;$(CC) $(CFLAGS);& $(LDFLAGS);' make CC=$CC example make docs }