Project

General

Profile

Actions

Bug #7467

closed

lib/mkmf.rb merge_lib fails on larger sets of libraries

Added by mpapis (Michal Papis) about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin12.2.0]
Backport:
[ruby-core:50307]

Description

running:

merge_libs(["-lncurses", "-ltinfo", "-lssl", "-lcrypto", "-lz", "-lreadline", "-ltermcap", "-lyaml"],["-lcrypto", "-lssl", "-lcrypto", "-lz"],[])

fails with an exception

I have tried a bit and it works fine with a lot simplified version of this code:

def merge_libs(*libs)
libs.flatten.uniq
end

Also can this be backported to Ruby 1.9.3?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0