* [gentoo-commits] repo/gentoo:master commit in: profiles/prefix/sunos/solaris/5.10/
@ 2017-03-13 10:03 Michael Haubenwallner
0 siblings, 0 replies; only message in thread
From: Michael Haubenwallner @ 2017-03-13 10:03 UTC (permalink / raw
To: gentoo-commits
commit: 4ea737ea7a131af53b8ff2658a2ea28c69395638
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 13 10:02:44 2017 +0000
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Mon Mar 13 10:02:44 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ea737ea
profiles/prefix/solaris/5.10: set -std=c99 for flex
profiles/prefix/sunos/solaris/5.10/profile.bashrc | 10 ++++++++++
1 file changed, 10 insertions(+)
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 00000000000..19997627666
--- /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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-13 10:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-13 10:03 [gentoo-commits] repo/gentoo:master commit in: profiles/prefix/sunos/solaris/5.10/ Michael Haubenwallner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox