mozjs52: add fix for gcc-9.1.0

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-05-17 12:26:22 +02:00
parent 5acb5710d9
commit 4f0c438f9c
No known key found for this signature in database
GPG Key ID: DE55AD8DBEBB4EE8
1 changed files with 3 additions and 0 deletions

View File

@ -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" ;;