You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2012/08/09 18:03:14 UTC

svn commit: r1371273 - /thrift/trunk/lib/rb/ext/extconf.rb

Author: jfarrell
Date: Thu Aug  9 16:03:14 2012
New Revision: 1371273

URL: http://svn.apache.org/viewvc?rev=1371273&view=rev
Log:
Thrift-1673: Ruby compile flags for extension for multi arch builds (os x)
Client: ruby
Patch: Jake Farrell

Updating extension build to use ruby cflags which include the arch flags needed.


Modified:
    thrift/trunk/lib/rb/ext/extconf.rb

Modified: thrift/trunk/lib/rb/ext/extconf.rb
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/rb/ext/extconf.rb?rev=1371273&r1=1371272&r2=1371273&view=diff
==============================================================================
--- thrift/trunk/lib/rb/ext/extconf.rb (original)
+++ thrift/trunk/lib/rb/ext/extconf.rb Thu Aug  9 16:03:14 2012
@@ -22,7 +22,7 @@ if defined?(RUBY_ENGINE) && RUBY_ENGINE 
 else
   require 'mkmf'
 
-  $CFLAGS = "-g -O2 -Wall -Werror"
+  $CFLAGS = "-g -O2 -Wall -Werror " + Config::CONFIG["CFLAGS"]
 
   have_func("strlcpy", "string.h")