diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-23 13:05:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-23 13:05:47 +0000 |
commit | 5b6fc3f0060868fd4645a5e6f56fc19087c3e2a0 (patch) | |
tree | 5625c168ca3f2830fc2f66d28d7fb7faa310013c /ext | |
parent | 429537310ea0d2caaad591b6295f52655bb4831e (diff) | |
download | ruby-5b6fc3f0060868fd4645a5e6f56fc19087c3e2a0.tar.gz |
extmk.rb: replace current directory name
* ext/extmk.rb (extmake): replace "./" at beginning in LOCAL_LIBS
with the current directory name for values cached in previous
Makefile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/extmk.rb | 2 | ||||
-rw-r--r-- | ext/fiddle/extconf.rb | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index ca7a3dbd25..850461a359 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -293,7 +293,7 @@ def extmake(target) unless $mswin $extflags = split_libs($extflags, $DLDFLAGS, $LDFLAGS).uniq.join(" ") end - $extlibs = merge_libs($extlibs, split_libs($libs), split_libs($LOCAL_LIBS)) + $extlibs = merge_libs($extlibs, split_libs($libs, $LOCAL_LIBS).map {|lib| lib.sub(/\A\.\//, "ext/#{target}/")}) $extpath |= $LIBPATH end ensure diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index f5c27cc934..1333bf549d 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -123,8 +123,7 @@ types.each do |type, signed| end if libffi - $LIBPATH.unshift libffi.lib - $LOCAL_LIBS.prepend("#{libffi.a} ").strip! + $LOCAL_LIBS.prepend("./#{libffi.a} ").strip! end create_makefile 'fiddle' do |conf| if !libffi @@ -155,7 +154,6 @@ end if libffi $LIBPATH.pop - $LOCAL_LIBS.prepend("ext/fiddle/") end # :startdoc: |