You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2012/12/21 18:19:16 UTC

svn commit: r1425040 - /subversion/branches/tweak-build-take-two/build/ac-macros/swig.m4

Author: brane
Date: Fri Dec 21 17:19:16 2012
New Revision: 1425040

URL: http://svn.apache.org/viewvc?rev=1425040&view=rev
Log:
[On the tweak-build-take-two branch]
Unconditionally trip ISO-C mode flags from Ruby compiler invocation.

* build/ac-macros/swig.m4: Strip flags -ansi, -std=c89, -std=c90
   from all Ruby binding compiler invocations.

Modified:
    subversion/branches/tweak-build-take-two/build/ac-macros/swig.m4

Modified: subversion/branches/tweak-build-take-two/build/ac-macros/swig.m4
URL: http://svn.apache.org/viewvc/subversion/branches/tweak-build-take-two/build/ac-macros/swig.m4?rev=1425040&r1=1425039&r2=1425040&view=diff
==============================================================================
--- subversion/branches/tweak-build-take-two/build/ac-macros/swig.m4 (original)
+++ subversion/branches/tweak-build-take-two/build/ac-macros/swig.m4 Fri Dec 21 17:19:16 2012
@@ -208,6 +208,9 @@ AC_DEFUN(SVN_FIND_SWIG,
       svn_cv_ruby_compile="$rbconfig_CC $CFLAGS"
     ])
     SWIG_RB_COMPILE="$svn_cv_ruby_compile"
+    SVN_STRIP_FLAG([SWIG_RB_COMPILE], [-ansi])
+    SVN_STRIP_FLAG([SWIG_RB_COMPILE], [-std=c89])
+    SVN_STRIP_FLAG([SWIG_RB_COMPILE], [-std=c90])
     dnl FIXME: Check that the compiler for Ruby actually supports this flag
     SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
 
@@ -228,6 +231,9 @@ AC_DEFUN(SVN_FIND_SWIG,
     old_CFLAGS="$CFLAGS"
     old_LIBS="$LIBS"
     CFLAGS="$CFLAGS $svn_cv_ruby_includes"
+    SVN_STRIP_FLAG([CFLAGS], [-ansi])
+    SVN_STRIP_FLAG([CFLAGS], [-std=c89])
+    SVN_STRIP_FLAG([CFLAGS], [-std=c90])
     LIBS="$SWIG_RB_LIBS"
     AC_LINK_IFELSE([AC_LANG_SOURCE([[
 #include <ruby.h>