Thrift-1673: Ruby compile flags for extension for multi arch builds (os x)
authorJake Farrell <jfarrell@apache.org>
Thu, 9 Aug 2012 16:03:14 +0000 (16:03 +0000)
committerJake Farrell <jfarrell@apache.org>
Thu, 9 Aug 2012 16:03:14 +0000 (16:03 +0000)
Client: ruby
Patch: Jake Farrell

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

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1371273 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/ext/extconf.rb

index 36dac9b..90a06b6 100644 (file)
@@ -22,7 +22,7 @@ if defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/
 else
   require 'mkmf'
 
-  $CFLAGS = "-g -O2 -Wall -Werror"
+  $CFLAGS = "-g -O2 -Wall -Werror " + Config::CONFIG["CFLAGS"]
 
   have_func("strlcpy", "string.h")