firefox: fix gcc6 build
This commit is contained in:
parent
ecc5dc0bb9
commit
62d5b64dca
1 changed files with 10 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'firefox'.
|
# Template build file for 'firefox'.
|
||||||
pkgname=firefox
|
pkgname=firefox
|
||||||
version=48.0.2
|
version=48.0.2
|
||||||
revision=2
|
revision=3
|
||||||
short_desc="Lightweight gecko-based web browser"
|
short_desc="Lightweight gecko-based web browser"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="https://www.mozilla.org/firefox/"
|
homepage="https://www.mozilla.org/firefox/"
|
||||||
|
@ -34,6 +34,15 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
x86_64*) build_options_default+=" rust" ;;
|
x86_64*) build_options_default+=" rust" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
_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
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
[ ! -d "${wrkdrc}/xbps-build" ] && mkdir -p "${wrksrc}/xbps-build"
|
[ ! -d "${wrkdrc}/xbps-build" ] && mkdir -p "${wrksrc}/xbps-build"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue