gcc: enable sanitizer for aarch64 architecture

[skip ci]

Closes: #6160 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
marmeladema 2018-12-23 18:24:12 +00:00 committed by Jürgen Buchmüller
parent 06b5f44b30
commit 95256495e2
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -1,4 +1,4 @@
# Template build file for 'gcc'. # Template file for 'gcc'
_majorver=8.2 _majorver=8.2
_gmp_version=6.1.2 _gmp_version=6.1.2
_mpfr_version=4.0.1 _mpfr_version=4.0.1
@ -7,16 +7,16 @@ _isl_version=0.19
pkgname=gcc pkgname=gcc
version=${_majorver}.0 version=${_majorver}.0
revision=7 revision=8
short_desc="The GNU C Compiler" short_desc="The GNU C Compiler"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://gcc.gnu.org" homepage="http://gcc.gnu.org"
license="GFDL-1.2, GPL-3, LGPL-2.1" license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
# *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
distfiles=" distfiles="
https://fossies.org/linux/misc/gcc-${version}.tar.xz https://fossies.org/linux/misc/gcc-${version}.tar.xz
https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
http://www.mpfr.org/mpfr-${_mpfr_version}/mpfr-${_mpfr_version}.tar.xz https://www.mpfr.org/mpfr-${_mpfr_version}/mpfr-${_mpfr_version}.tar.xz
https://fossies.org/linux/misc/mpc-${_mpc_version}.tar.gz https://fossies.org/linux/misc/mpc-${_mpc_version}.tar.gz
http://isl.gforge.inria.fr/isl-${_isl_version}.tar.bz2" http://isl.gforge.inria.fr/isl-${_isl_version}.tar.bz2"
checksum=" checksum="
@ -103,7 +103,6 @@ case "$XBPS_TARGET_MACHINE" in
esac esac
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) depends+=" musl-devel";; *-musl) depends+=" musl-devel";;
aarch64) depends+=" glibc-devel";;
*) depends+=" glibc-devel" *) depends+=" glibc-devel"
subpackages+=" libsanitizer libsanitizer-devel" subpackages+=" libsanitizer libsanitizer-devel"
;; ;;
@ -205,7 +204,7 @@ do_configure() {
fi fi
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
aarch64*|*-musl) _args+=" --disable-libsanitizer";; *-musl) _args+=" --disable-libsanitizer";;
esac esac
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) _args+=" --disable-symvers" *-musl) _args+=" --disable-symvers"