mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
icecat: fix gcc6 build
This commit is contained in:
parent
6f5e9f99c4
commit
e442c53512
1 changed files with 9 additions and 0 deletions
|
@ -30,6 +30,15 @@ CFLAGS+="\
|
||||||
-I${XBPS_CROSS_BASE}/usr/include/nss"
|
-I${XBPS_CROSS_BASE}/usr/include/nss"
|
||||||
CXXFLAGS="${CFLAGS}"
|
CXXFLAGS="${CFLAGS}"
|
||||||
|
|
||||||
|
_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
|
||||||
|
if [ "${_gccver%%.*}" -gt 5 ]; then
|
||||||
|
# Append CFLAGS and CXXFLAGS to set work around code which gcc6 would
|
||||||
|
# otherwise regard as out-of-specification and allow it to produce a
|
||||||
|
# working program.
|
||||||
|
CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
|
||||||
|
CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
|
||||||
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl)
|
*-musl)
|
||||||
|
|
Loading…
Add table
Reference in a new issue