From 4f0c438f9c7e38766611851c5d5da827c70983d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 17 May 2019 12:26:22 +0200 Subject: [PATCH] mozjs52: add fix for gcc-9.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/mozjs52/template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srcpkgs/mozjs52/template b/srcpkgs/mozjs52/template index 6fe724080a..2d6489bcc8 100644 --- a/srcpkgs/mozjs52/template +++ b/srcpkgs/mozjs52/template @@ -20,6 +20,9 @@ CFLAGS="-fpermissive -fno-delete-null-pointer-checks -fno-tree-vrp -fno-strict-a CXXFLAGS="-fpermissive -fno-delete-null-pointer-checks -fno-tree-vrp -fno-strict-aliasing" # Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl LDFLAGS="-fuse-ld=bfd" +# Flags for gcc9.1 +CFLAGS+=" -Wno-format-overflow" +CXXFLAGS+=" -Wno-format-overflow" case "$XBPS_TARGET_MACHINE" in mips*|armv[56]*|ppc|ppc-musl) makedepends+=" libatomic-devel" ; LDFLAGS+=" -latomic" ;;