#! /bin/sh /usr/share/dpatch/dpatch-run
##
## ruby-no-strict-aliasing by <peter@p12n.org>
##
## DP: Compile ruby bindings with -fno-strict-aliasing.
## DP: It seems swig is generating _really_ bad code here, or something.
## DP:
## DP: Whatever it is, this line suppresses 1323 warnings, any of which might
## DP: be real bugs with real consequences.

@DPATCH@
--- a/Makefile.in
+++ b/Makefile.in
@@ -136,7 +136,7 @@
 SWIG_PY_LIBS = @SWIG_PY_LIBS@
 SWIG_PL_INCLUDES = @SWIG_PL_INCLUDES@
 SWIG_RB_INCLUDES = @SWIG_RB_INCLUDES@ -I$(SWIG_SRC_DIR)/ruby/libsvn_swig_ruby
-SWIG_RB_COMPILE = @SWIG_RB_COMPILE@
+SWIG_RB_COMPILE = @SWIG_RB_COMPILE@ -fno-strict-aliasing
 SWIG_RB_LINK = @SWIG_RB_LINK@
 SWIG_RB_LIBS = @SWIG_RB_LIBS@
 SWIG_RB_SITE_LIB_DIR = @SWIG_RB_SITE_LIB_DIR@
