summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-20 15:58:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-20 15:58:03 +0000
commit03570f8091bc5641bdb0020eccfa6bdf8556c8c3 (patch)
tree5145637f2e086780de48ed75532caa370b300427 /ext/extmk.rb
parentf244f525c5172d25dbfb5cb0ef3af4428144d224 (diff)
ext/extmk.rb: workaround for -framework option
* ext/extmk.rb (extmake): assume non-option words are arguments. workaround for -framework option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 9293eca..069465e 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -260,7 +260,7 @@ def extmake(target)
unless $mswin
$extflags = ($extflags.split | $DLDFLAGS.split | $LDFLAGS.split).join(" ")
end
- $extlibs = merge_libs($extlibs, $libs.split, $LOCAL_LIBS.split)
+ $extlibs = merge_libs($extlibs, $libs.split(/\s+(?=-|\z)/), $LOCAL_LIBS.split(/\s+(?=-|\z)/))
$extpath |= $LIBPATH
end
ensure