diff options
author | tduehr <tduehr@gmail.com> | 2014-07-01 13:05:25 -0500 |
---|---|---|
committer | tduehr <tduehr@gmail.com> | 2014-07-01 13:05:25 -0500 |
commit | b95cb617c4d2e65c6a5e1cd31caa91875bcfbc5a (patch) | |
tree | e9622b727793b8aea4b7f80b71ce846d6727b2f2 | |
parent | df496d6726ef4ef78b6d03bb0d7324663dfd6a2a (diff) | |
download | ffi-b95cb617c4d2e65c6a5e1cd31caa91875bcfbc5a.tar.gz |
fix ld scripts in freebsd
-rw-r--r-- | lib/ffi/library.rb | 2 |
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 |