summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2017-03-13 11:02:44 +0100
committerMichael Haubenwallner <haubi@gentoo.org>2017-03-13 11:02:44 +0100
commit4ea737ea7a131af53b8ff2658a2ea28c69395638 (patch)
treedb01a592b1651e0471218457d0896257a8447852 /profiles/prefix/sunos
parentdev-libs/libpcre2: ppc stable (bug 599218). (diff)
downloadgentoo-4ea737ea7a131af53b8ff2658a2ea28c69395638.tar.gz
gentoo-4ea737ea7a131af53b8ff2658a2ea28c69395638.tar.bz2
gentoo-4ea737ea7a131af53b8ff2658a2ea28c69395638.zip
profiles/prefix/solaris/5.10: set -std=c99 for flex
Diffstat (limited to 'profiles/prefix/sunos')
-rw-r--r--profiles/prefix/sunos/solaris/5.10/profile.bashrc10
1 files changed, 10 insertions, 0 deletions
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 <stdbool.h> requires the C99 standard
+ [[ " ${CFLAGS} " == *" -std=c99 "* ]] || CFLAGS="-std=c99 ${CFLAGS}"
+ [[ " ${CXXFLAGS} " == *" -std=c99 "* ]] || CXXFLAGS="-std=c99 ${CXXFLAGS}"
+ fi
+fi