From fd200954070652c737b8df3fd0c7f78672721ca1 Mon Sep 17 00:00:00 2001 From: twittner Date: Sun, 18 Dec 2005 21:08:38 +0000 Subject: [PATCH] - allow to pass custom CXXFLAGS: remove -march=foo and -Obar from ruby `Config::CONFIG["CFLAGS"]' and append CXXFLAGS from environment Changed files: ruby-wxruby2-FLAGS.patch -> 1.1 --- ruby-wxruby2-FLAGS.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ruby-wxruby2-FLAGS.patch diff --git a/ruby-wxruby2-FLAGS.patch b/ruby-wxruby2-FLAGS.patch new file mode 100644 index 0000000..d48653c --- /dev/null +++ b/ruby-wxruby2-FLAGS.patch @@ -0,0 +1,11 @@ +--- wxruby2/rakefile~ 2005-12-18 18:00:42.882907248 +0100 ++++ wxruby2/rakefile 2005-12-18 21:18:09.329540280 +0100 +@@ -10,7 +10,7 @@ + # overridden by platform-specific rake files + $dl_ext = Config::CONFIG["DLEXT"] + $obj_ext = Config::CONFIG["OBJEXT"] +-$ruby_cppflags = Config::CONFIG["CFLAGS"] ++$ruby_cppflags = Config::CONFIG["CFLAGS"].gsub(/-march=\S*/, "").gsub(/-O\S*/, "") + " #{ENV['CXXFLAGS']}" #XXX: should be ruby_cxxflags + $ruby_includes = " -I " + $:.join(' -I ') + $ruby_ldflags = Config::CONFIG["LDFLAGS"] + $ruby_libs = Config::CONFIG["LIBS"] -- 2.44.0