gst-libav: fix x86_64-musl build (work around gcc bug)

This commit is contained in:
Michael Gehring 2016-03-29 12:53:13 +02:00
parent 33b6c28d72
commit e5cc4e0019

View file

@ -27,3 +27,11 @@ pre_configure() {
# Fix cross compiling for arm* where os=linuxeabihf
sed -i ${wrksrc}/gst-libs/ext/libav/configure -e "s;linux);linux*);"
}
post_configure() {
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) # compiling with -O3 triggers a gcc bug
sed -i 's/-O3/-O2/g' gst-libs/ext/libav/config.mak
;;
esac
}