keg_relocate: treat .lai files as libtool files.

Previously .lai files only had their locations replaced with
placeholders if /usr/bin/file recognized them as ASCII files, which is
only the case on macOS Sierra and above.
This commit is contained in:
ilovezfs 2017-09-16 07:04:26 -07:00
parent 827723dbac
commit 01f52f54e3

View File

@ -156,7 +156,7 @@ class Keg
libtool_files = []
path.find do |pn|
next if pn.symlink? || pn.directory? || pn.extname != ".la"
next if pn.symlink? || pn.directory? || ![".la", ".lai"].include?(pn.extname)
libtool_files << pn
end
libtool_files