1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fiddle: do not disturb other checks

* ext/fiddle/extconf.rb: add the local ffi library and header just
  before create_makefile, not to disturb other checks.
  also prepend the extension path name to the local library name
  for static linked ext.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-12-21 07:15:04 +00:00
parent bade6e467e
commit 0c8b964ef7

View file

@ -33,8 +33,6 @@ begin
libffi.lib = "#{libffi.builddir}/.libs"
libffi.a = "#{libffi.lib}/libffi.#{$LIBEXT}"
libffi.cflags = RbConfig.expand("$(CFLAGS)", CONFIG.merge("warnflags"=>""))
$LIBPATH.unshift libffi.lib
$INCFLAGS << " -I" << libffi.include
ver = ver[/libffi-(.*)/, 1]
end
end
@ -79,6 +77,11 @@ types.each do |type, signed|
end
end
if libffi
$LIBPATH.unshift libffi.lib
$INCFLAGS << " -I" << libffi.include
$LOCAL_LIBS.prepend("#{libffi.a} ").strip!
end
create_makefile 'fiddle' do |conf|
next conf unless libffi
if $gnumake
@ -102,6 +105,8 @@ create_makefile 'fiddle' do |conf|
end
if libffi
$LIBPATH.pop
$LOCAL_LIBS.prepend("ext/fiddle/")
args = [$make, *sysquote($mflags)]
Logging::open do
Logging.message("%p\n", args)