From: Michael Haubenwallner Date: Mon, 13 Mar 2017 10:02:44 +0000 (+0100) Subject: profiles/prefix/solaris/5.10: set -std=c99 for flex X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4ea737ea7a131af53b8ff2658a2ea28c69395638;p=gentoo.git profiles/prefix/solaris/5.10: set -std=c99 for flex --- diff --git a/profiles/prefix/sunos/solaris/5.10/profile.bashrc b/profiles/prefix/sunos/solaris/5.10/profile.bashrc new file mode 100644 index 000000000000..199976276664 --- /dev/null +++ b/profiles/prefix/sunos/solaris/5.10/profile.bashrc @@ -0,0 +1,10 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +if [[ ${EBUILD_PHASE} == setup ]] ; then + if [[ ${CATEGORY}/${PN} == sys-devel/flex ]] ; then + # Solaris 10's requires the C99 standard + [[ " ${CFLAGS} " == *" -std=c99 "* ]] || CFLAGS="-std=c99 ${CFLAGS}" + [[ " ${CXXFLAGS} " == *" -std=c99 "* ]] || CXXFLAGS="-std=c99 ${CXXFLAGS}" + fi +fi