summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortduehr <tduehr@gmail.com>2014-07-01 13:05:25 -0500
committertduehr <tduehr@gmail.com>2014-07-01 13:05:25 -0500
commitb95cb617c4d2e65c6a5e1cd31caa91875bcfbc5a (patch)
treee9622b727793b8aea4b7f80b71ce846d6727b2f2
parentdf496d6726ef4ef78b6d03bb0d7324663dfd6a2a (diff)
downloadffi-b95cb617c4d2e65c6a5e1cd31caa91875bcfbc5a.tar.gz
fix ld scripts in freebsd
-rw-r--r--lib/ffi/library.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ffi/library.rb b/lib/ffi/library.rb
index 6823712..4b50eb3 100644
--- a/lib/ffi/library.rb
+++ b/lib/ffi/library.rb
@@ -114,7 +114,7 @@ module FFI
rescue Exception => ex
ldscript = false
- if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short)/
+ if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short|invalid file format)/
if File.read($1) =~ /(?:GROUP|INPUT) *\( *([^ \)]+)/
libname = $1
ldscript = true