fix_install_names: use Mach-O methods to find dylibs

Some libraries do not have the .dylib extension (e.g. Qt framework
libs), but need to have their install names rewritten to prevent other
packages from breaking due to upgrades. Use the new Pathname#dylib?
instead.
This commit is contained in:
Jack Nagel committed 2012-05-30 22:32:48 -05:00
1 parent 96fb03750e
commit 586271e442
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ class Keg
if (lib = join 'lib').directory?
lib.find do |pn|
next if pn.symlink? or pn.directory?
dylibs << pn if pn.extname == '.dylib'
dylibs << pn if pn.dylib?
end
end
dylibs