def linker_line_for(libs)
    return '' if (libs.nil? || libs.empty?)

    libs.map do |lib|
      settings = platform_settings_for(lib)
      if settings[:LDFLAGS].nil? || settings[:LDFLAGS].empty?
        # automatic linker line if no platform specific LDFLAGS exist
        "-l#{lib}"
      else
        # only matches -l<libname> settings
        /(\s|^)+-l\S+/.match(settings[:LDFLAGS]).to_s
      end
    end.join(' ').strip
  end
def linker_line_for(libs)
    return '' if (libs.nil? || libs.empty?)

    libs.map do |lib|
      settings = platform_settings_for(lib)
      if settings[:LDFLAGS].nil? || settings[:LDFLAGS].empty?
        # automatic linker line if no platform specific LDFLAGS exist
        "-l#{lib}"
      else
        # only matches -l<libname> settings
        /(\s|^)+-l\S+/.match(settings[:LDFLAGS]).to_s
      end
    end.join(' ').strip
  end
Generates linker line from given library list.
 The linker line normally will be like -l<lib1> -l<lib2>, ...

 If a library has specific platform specific setting in the platform file
 with a specific -l<lib> alternative, this will be used instead.

 @param [Array]  libs  Libraries to be used for linker line

 @return [String]      Linker line