[ruby/resolv] Build the extension library only when CRuby (Fix
https://github.com/ruby/resolv/pull/69) On JRuby no C compiler is available and this call results in a runtime error. https://github.com/ruby/resolv/commit/33105bc504
This commit is contained in:
parent
fea83a4b80
commit
af9a904f38
@ -1,5 +1,5 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
if have_library('iphlpapi', 'GetNetworkParams')
|
if RUBY_ENGINE == "ruby" and have_library('iphlpapi', 'GetNetworkParams')
|
||||||
create_makefile('win32/resolv')
|
create_makefile('win32/resolv')
|
||||||
else
|
else
|
||||||
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
|
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user