summaryrefslogtreecommitdiff
path: root/profiles/prefix/sunos/solaris/5.10/profile.bashrc
blob: 1999762766644e5f0a53ea9a5b194d08a9de75fa (plain)
1
2
3
4
5
6
7
8
9
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 <stdbool.h> requires the C99 standard
		[[ " ${CFLAGS} "   == *" -std=c99 "* ]] || CFLAGS="-std=c99 ${CFLAGS}"
		[[ " ${CXXFLAGS} " == *" -std=c99 "* ]] || CXXFLAGS="-std=c99 ${CXXFLAGS}"
	fi
fi