icc now seems to provide libutil.so that is not related to pty.
This extconf.rb wrongly finds it and adds -lutil, but ruby -rpty
fails because it cannot find libutil.so on the runtime.
Exception raised:
<#<LoadError: libutil.so: cannot open shared object file: No such file or directory - /home/chkbuild/chkbuild/tmp/build/20220815T210005Z/ruby/.ext/x86_64-linux/pty.so>>
This change makes extconf.rb check libutil only on OpenBSD.
ext/pty/extconf.rb: Try libutil only on OpenBSD
icc now seems to provide libutil.so that is not related to pty.
This extconf.rb wrongly finds it and adds
-lutil
, butruby -rpty
fails because it cannot find libutil.so on the runtime.
http://rubyci.s3.amazonaws.com/icc-x64/ruby-master/log/20220815T210005Z.fail.html.gz
This change makes extconf.rb check libutil only on OpenBSD.