mozjs52: add fix for gcc-9.1.0
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
5acb5710d9
commit
4f0c438f9c
|
@ -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"
|
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
|
# Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
|
||||||
LDFLAGS="-fuse-ld=bfd"
|
LDFLAGS="-fuse-ld=bfd"
|
||||||
|
# Flags for gcc9.1
|
||||||
|
CFLAGS+=" -Wno-format-overflow"
|
||||||
|
CXXFLAGS+=" -Wno-format-overflow"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
mips*|armv[56]*|ppc|ppc-musl) makedepends+=" libatomic-devel" ; LDFLAGS+=" -latomic" ;;
|
mips*|armv[56]*|ppc|ppc-musl) makedepends+=" libatomic-devel" ; LDFLAGS+=" -latomic" ;;
|
||||||
|
|
Loading…
Reference in New Issue