diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template index 05ea9bed2f9..1e926d51c65 100644 --- a/srcpkgs/gcc/template +++ b/srcpkgs/gcc/template @@ -4,7 +4,7 @@ _gcjrel=17 pkgname=gcc version=${_majorver}.0 -revision=4 +revision=5 short_desc="The GNU C Compiler" maintainer="Juan RP " homepage="http://gcc.gnu.org" @@ -159,6 +159,7 @@ do_configure() { export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}" export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}" + export glibcxx_cv_c99_math_cxx98=yes glibcxx_cv_c99_math_cxx11=yes _args+=" --prefix=/usr" _args+=" --mandir=/usr/share/man" @@ -190,6 +191,7 @@ do_configure() { CONFIG_SHELL=/bin/bash ${wrksrc}/configure ${_args} } do_build() { + export glibcxx_cv_c99_math_cxx98=yes glibcxx_cv_c99_math_cxx11=yes if [ -z "$CHROOT_READY" ]; then export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib" fi