summaryrefslogtreecommitdiff
path: root/devel/rubygem-mkrf/files/patch-lib__mkrf__availability.rb
blob: 70467f053e82465367efc43b0db54ce5c0ae9cbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ./lib/mkrf/availability.rb.orig	2014-02-21 20:52:50.940993647 +0000
+++ ./lib/mkrf/availability.rb	2014-02-21 20:52:57.428993579 +0000
@@ -150,7 +150,7 @@
       if RUBY_PLATFORM =~ /mswin/
         @loaded_libs.join(' ')
       else
-        @loaded_libs.collect {|l| "-l#{l}"}.join(' ')
+        @loaded_libs.collect {|l| if l =~ /-/ then "#{l}" else "-l#{l}" end}.join(' ')
       end
     end