diff --git a/srcpkgs/gst-libav/template b/srcpkgs/gst-libav/template index 3bb0e585b1..cf21744d8c 100644 --- a/srcpkgs/gst-libav/template +++ b/srcpkgs/gst-libav/template @@ -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 +}