Closed rdp closed 12 years ago
@luislavena, can you take a look at this? I won't bother unless you give your seal of approval.
Hello,
Actually the only thing that matters is .gsub(/\$\(.*\)/, '')
to filter out some debugging options that are inside RbConfig::CONFIG["LDSHARED"]
On 1.9.2, this is what contains: "gcc -shared $(if $(filter-out -g -g0,-g),,-s)"
Which are Make logic.
The pull request contains other modifications that are already in place, so perhaps you want to rewrite the code to something like this:
ldshared = Config::CONFIG["LDSHARED"].gsub(/\$\(.*\)/, '')
cmd = [ ldshared,
There is no need to modify the command line further than this.
Cheers!
let me clean this up a bit...somehow the pull request came in weird, too.
@luislavena could you look at my next attempt at a pull request please? Thanks. https://github.com/seattlerb/rubyinline/pull/14
My fork has some patches to support mingw 1.9 It's either use these or switch to using a "makefile" type build instead of calling gcc, I believe. Thanks. -roger