gcc: disable symvers and ifunc on musl; remove guessed options.

This commit is contained in:
Juan RP 2015-05-14 11:13:28 +02:00
parent 2775c8225b
commit cb45c7cee4

View file

@ -2,7 +2,7 @@
pkgname=gcc
_majorver=4.9
version=${_majorver}.2
revision=3
revision=4
short_desc="The GNU C Compiler"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://gcc.gnu.org"
@ -125,21 +125,22 @@ do_configure() {
case "$XBPS_TARGET_MACHINE" in
aarch64*|*-musl) _args+=" --disable-libsanitizer";;
esac
case "$XBPS_TARGET_MACHINE" in
*-musl) _args+=" --disable-symvers libat_cv_have_ifunc=no";;
esac
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}"
export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}"
CONFIG_SHELL=/bin/bash \
./configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --libexecdir=/usr/lib \
--enable-clocale=gnu --libdir=/usr/lib \
--infodir=/usr/share/info --libexecdir=/usr/lib --libdir=/usr/lib \
--enable-threads=posix --enable-__cxa_atexit --disable-multilib \
--with-system-zlib --enable-shared --enable-lto \
--enable-linker-build-id --enable-gnu-unique-object \
--enable-linker-build-id --disable-werror \
--enable-checking=release --disable-libstdcxx-pch \
--enable-cloog-backend=isl --with-linker-hash-style=gnu \
--disable-werror --enable-languages=${_langs} \
--enable-sjlj-exceptions=no ${_args}
--enable-languages=${_langs} ${_args}
}
do_build() {
make ${makejobs}