rake-compiler / rake-compiler-dock

Easy to use and reliable cross compiler environment for building Windows, Linux, Mac and JRuby binary gems.
MIT License
77 stars 30 forks source link

`extconf.rb` check for ruby functions fail due to unresolved symbols in `libruby-static.a` #65

Closed larskanis closed 2 years ago

larskanis commented 2 years ago

It fails like here: https://github.com/rake-compiler/rake-compiler-dock/runs/4996038938?check_suite_focus=true#step:7:123

Adding the following lines to extconf.rb works around this issue:

have_library('pthread')
have_library('rt')
have_library('dl')
have_library('crypt')

This issue was noticed here: https://github.com/kwilczynski/ruby-magic/blob/f30c53f74d4bfff7510651f4c4a533033ad34efc/ext/magic/extconf.rb#L396-L401

larskanis commented 2 years ago

Fixed per #67