iniparser: fix PIE
This commit is contained in:
parent
de56081135
commit
769529597c
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'iniparser'
|
# Template file for 'iniparser'
|
||||||
pkgname=iniparser
|
pkgname=iniparser
|
||||||
version=4.0
|
version=4.0
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="doxygen chrpath"
|
hostmakedepends="doxygen chrpath"
|
||||||
short_desc="A free stand-alone ini file parsing library"
|
short_desc="A free stand-alone ini file parsing library"
|
||||||
|
@ -14,6 +14,10 @@ checksum=e0bbd664bb3f0d64c21ac2d67a843b1c7a3a9710e96393344d170ab8b33e92ba
|
||||||
CFLAGS="-fPIC"
|
CFLAGS="-fPIC"
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
|
sed -i example/Makefile \
|
||||||
|
-e"s;^\(CFLAGS.*=.*\);& $CFLAGS;" \
|
||||||
|
-e"s;^\(LFLAGS.*=.*\);& $LDFLAGS;" \
|
||||||
|
-e's;$(CC) $(CFLAGS);& $(LDFLAGS);'
|
||||||
make CC=$CC example
|
make CC=$CC example
|
||||||
make docs
|
make docs
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue