Permalink
Browse files

Update compile_library_string to not always paste -l in front of elem…

…ents in the LIBS config element.

This fixes all failing tests on FreeBSD, and breaks none on OSX.
No other platforms available for testing.
  • Loading branch information...
1 parent a9d917a commit 83b527585962a4f50645b25df4a6673fe53d8c10 mpd committed Apr 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mkrf/availability.rb
View
@@ -150,7 +150,7 @@ def library_compile_string
if RUBY_PLATFORM =~ /mswin/
@loaded_libs.join(' ')
else
- @loaded_libs.collect {|l| "-l#{l}"}.join(' ')
+ @loaded_libs.collect {|l| l =~ %r!/! ? " #{l}" : "-l#{l}"}.join(' ')
end
end

1 comment on commit 83b5275

Owner

xxx commented on 83b5275 Apr 18, 2010

should have been library_compile_string in that commit msg. can't win 'em all, i guess.

Please sign in to comment.