]> git.pld-linux.org Git - packages/ruby-wxruby2.git/commitdiff
- allow to pass custom CXXFLAGS: remove -march=foo and -Obar from ruby
authortwittner <twittner@pld-linux.org>
Sun, 18 Dec 2005 21:08:38 +0000 (21:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  `Config::CONFIG["CFLAGS"]' and append CXXFLAGS from environment

Changed files:
    ruby-wxruby2-FLAGS.patch -> 1.1

ruby-wxruby2-FLAGS.patch [new file with mode: 0644]

diff --git a/ruby-wxruby2-FLAGS.patch b/ruby-wxruby2-FLAGS.patch
new file mode 100644 (file)
index 0000000..d48653c
--- /dev/null
@@ -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"]
This page took 0.144307 seconds and 4 git commands to generate.