Regarding nobu's comment on whether linkers can ignore "useless" library links (comment #8): yes they can, but both on GNU/Linux systems as well as on macOS, this behavior is at present not the default. On GNU systems, [--as-needed](h...hongli (Hongli Lai)
nobu (Nobuyoshi Nakada) wrote: > Does linking `Foundation` framework instead of `CoreFoundation` framework work? According to my tests on High Sierra, linking to Foundation helps, but linking to CoreFoundation does not. CoreFoundatio...hongli (Hongli Lai)
Perhaps it helps if I further clarify this issue for those who are unfamiliar with it. As you probably already know, forking (but without exec'ing) in a multithreaded environment is inherently dangerous and the environment must be car...hongli (Hongli Lai)
Hm, I see. We clear $LIBS in order to fix https://github.com/phusion/passenger/issues/168, but that may be interfering. Let me investigate this further.hongli (Hongli Lai)
If Ruby is compiled with static libruby, then mkmf have_func calls will fail. This is because have_func tries to compile a binary, passing -lruby-static to the compiler. However this fails because binary also needs to be linked to a bunc...hongli (Hongli Lai)
=begin Do you really need a core method for this? People can just copy-paste the code we use in Phusion Passenger for locating the current Ruby. We even have RVM support. https://github.com/FooBarWidget/passenger/blob/6a5d5b2e502823208a...hongli (Hongli Lai)