From cd2871a0297f5a647741030912f03a7496b12b94 Mon Sep 17 00:00:00 2001
From: Michael Sterrett <mr_bones_@gentoo.org>
Date: Thu, 3 Sep 2015 14:04:25 -0400
Subject: [PATCH] seems like the code is fragile (bug #559548) so drop down to
 very conservative CFLAGS

Package-Manager: portage-2.2.20.1
---
 games-rpg/freedink/freedink-108.4.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/games-rpg/freedink/freedink-108.4.ebuild b/games-rpg/freedink/freedink-108.4.ebuild
index 8d47573110d9..dafba425737d 100644
--- a/games-rpg/freedink/freedink-108.4.ebuild
+++ b/games-rpg/freedink/freedink-108.4.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=5
-inherit games
+inherit flag-o-matic games
 
 DESCRIPTION="Dink Smallwood is an adventure/role-playing game, similar to Zelda (2D top view)"
 HOMEPAGE="http://www.freedink.org/"
@@ -32,6 +32,9 @@ src_prepare() {
 	sed -i \
 		-e 's#^datarootdir =.*$#datarootdir = /usr/share#' \
 		share/Makefile.in || die
+	# seems like the code is fragile (bug #559548)
+	filter-flags
+	replace-flags -O? -O0
 }
 
 src_configure() {
-- 
2.26.2