S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/$P-as-needed.patch"
}
src_compile() {
use threads && append-flags "-pthread"