Print LC_VERSION_MIN_MACOSX for each executable and library.

svn path=/trunk/; revision=53145
This commit is contained in:
Gerald Combs 2013-11-07 17:55:46 +00:00
parent 5c319860fb
commit 3f385b31ab
1 changed files with 9 additions and 0 deletions

View File

@ -484,6 +484,15 @@ rpathify_file () {
/usr/bin/install_name_tool -id $to $1
fi
#
# Show the minimum supported version of Mac OS X
# for each executable or library
#
if [[ "$filetype" = "EXECUTE" || "$filetype" = "DYLIB" ]] && [[ "$VERSION" -ge "7" ]] ; then
echo "Minimum Mac OS X version for $1:"
otool -l $1 | grep -A3 LC_VERSION_MIN_MACOSX
fi
#
# Get the list of dynamic libraries on which this
# file depends, and select only the libraries that