+ if ($line =~ m{\s-o # -o
+ [\s\\]*\s+ # possible line continuation
+ ([A-Za-z0-9_/.-]+/)? # path to file
+ [A-Za-z0-9_-]+ # binary name (no dots!)
+ ([0-9.]*\.so[0-9.]*[a-z]? # library (including version)
+ |\.la)?
+ (\s|\\|\$) # end of file name
+ }x