fltk: Do not leak hardening flags into fltk-config

Closes #4906
This commit is contained in:
Juergen Buchmueller 2016-10-07 09:20:11 +02:00
parent fff0f97358
commit 82a964a6a2
1 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,12 @@ checksum=f8398d98d7221d40e77bc7b19e761adaf2f1ef8bb0c30eceb7beb4f2273d0d97
pre_build() {
sed -i '/DIRS =/s,test,,' Makefile
}
post_build() {
sed -i fltk-config \
-e's;-specs=/void-packages/common/environment/configure/gccspecs/hardened-cc1 ;;' \
-e's;-specs=/void-packages/common/environment/configure/gccspecs/hardened-ld ;;'
}
post_install() {
rm -rf ${DESTDIR}/usr/share/man/cat[13]
rm -f ${DESTDIR}/usr/lib/*.a