summaryrefslogtreecommitdiff
path: root/games/wesnoth/patches
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2007-01-26 11:40:36 +0000
committerdillo <dillo@pkgsrc.org>2007-01-26 11:40:36 +0000
commita3753b25b1686608bf134a035fb24f4cbc10152e (patch)
tree4eb256da52b7e83842a51d574c2b73fc973e9170 /games/wesnoth/patches
parentca89d4c8453541d5d88f6f9d9af9db91179f4a22 (diff)
downloadpkgsrc-a3753b25b1686608bf134a035fb24f4cbc10152e.tar.gz
On NetBSD 3, turn off optimization for unit_types.cpp, since it
causes gcc to segfault with -O2.
Diffstat (limited to 'games/wesnoth/patches')
-rw-r--r--games/wesnoth/patches/patch-ab19
1 files changed, 19 insertions, 0 deletions
diff --git a/games/wesnoth/patches/patch-ab b/games/wesnoth/patches/patch-ab
new file mode 100644
index 00000000000..2d365568418
--- /dev/null
+++ b/games/wesnoth/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.5 2007/01/26 11:40:36 dillo Exp $
+
+--- src/Makefile.in.orig 2007-01-25 15:18:34.000000000 +0000
++++ src/Makefile.in
+@@ -1231,6 +1231,14 @@ distclean-compile:
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
++unit_types.o: unit_types.cpp
++@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
++@am__fastdepCXX_TRUE@ $(CXXCOMPILE) $(ICE_NO_OPT) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
++@am__fastdepCXX_TRUE@ mv -f $$depbase.Tpo $$depbase.Po
++@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
++@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
++@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
++
+ .cpp.o:
+ @am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
+ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\