From 647a34024964ffa1695364271cf2e0fc0daa6f67 Mon Sep 17 00:00:00 2001 From: Roaster Project Date: Fri, 15 Apr 2022 00:11:54 +0800 Subject: [PATCH] Work around gtest issue on https://github.com/mono/libgdiplus/issues/737 --- pkgs/libgdiplus.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/libgdiplus.sh b/pkgs/libgdiplus.sh index e4bcd6ec..adb5a6a1 100644 --- a/pkgs/libgdiplus.sh +++ b/pkgs/libgdiplus.sh @@ -23,7 +23,10 @@ export CC="ccache $CC" CXX="ccache $CXX" - export C{,XX}FLAGS="-fdebug-prefix-map='$SCRATCH'='$INSTALL_PREFIX/src' -g" + # Known issue: + # - gtest 1.10 failed to compile on gcc-11. + # https://github.com/mono/libgdiplus/issues/737 + export C{,XX}FLAGS="-fdebug-prefix-map='$SCRATCH'='$INSTALL_PREFIX/src' -g -Wno-maybe-uninitialized" # For libpng. export PKG_CONFIG_PATH="/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"