From e5cc4e0019f2c021565c332dfb6401ccc9976ebc Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Tue, 29 Mar 2016 12:53:13 +0200 Subject: [PATCH] gst-libav: fix x86_64-musl build (work around gcc bug) --- srcpkgs/gst-libav/template | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +}