iniparser: fix PIE

This commit is contained in:
Juergen Buchmueller 2016-09-07 05:58:01 +02:00
parent de56081135
commit 769529597c
1 changed files with 5 additions and 1 deletions

View File

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