opnsense-ports/devel/rubygem-mkrf/files/patch-lib__mkrf__availability.rb
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
407 B
Ruby

--- ./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