# HG changeset patch
# User Pascal Bellard <pascal.bellard@slitaz.org>
# Date 1253864788 -7200
# Node ID 283b42f9a258090dd64ddc529211771579727e55
# Parent  afd01c3e849d18f9d5f3be00e331bf64f79335b8
wesnoth: fix build

diff -r afd01c3e849d -r 283b42f9a258 wesnoth/receipt
--- a/wesnoth/receipt	Fri Sep 25 09:38:33 2009 +0200
+++ b/wesnoth/receipt	Fri Sep 25 09:46:28 2009 +0200
@@ -15,7 +15,10 @@
 compile_rules()
 {
 	cd $src
-	./configure --prefix=/usr $CONFIGURE_ARGS && \
+	./configure --prefix=/usr $CONFIGURE_ARGS
+	sed -i  -e 's/CFLAGS = -O2/CFLAGS = -fno-strict-aliasing -O2/' \
+		-e 's/CXXFLAGS = -O2/CXXFLAGS = -fno-strict-aliasing -O2/' \
+			Makefile src/Makefile
 	make && make DESTDIR=$PWD/_pkg install
 }