class RbSys::CargoBuilder

def linker_args

mkmf work properly.
We want to use the same linker that Ruby uses, so that the linker flags from
def linker_args
  # Have to handle CC="cl /nologo" on mswin
  cc_flag = Shellwords.split(makefile_config("CC"))
  linker = cc_flag.shift
  link_args = cc_flag.flat_map { |a| ["-C", "link-arg=#{a}"] }
  return mswin_link_args if linker == "cl"
  ["-C", "linker=#{linker}", *link_args]
end