From: Duncan Sands Date: Fri, 12 Jun 2009 14:23:42 +0000 (+0000) Subject: Tweak GenLibDeps.pl so it works on solaris. X-Git-Tag: android-x86-6.0-r1~1003^2~20072 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7e0842fb21791d2600ac763cc41931003ae4d878;p=android-x86%2Fexternal-llvm.git Tweak GenLibDeps.pl so it works on solaris. Patch by Edward O'Callaghan. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73228 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/GenLibDeps.pl b/utils/GenLibDeps.pl index 73f3e71491a..6d0b13ee436 100755 --- a/utils/GenLibDeps.pl +++ b/utils/GenLibDeps.pl @@ -38,6 +38,10 @@ if (!$FLAT) { die "Can't find 'dot'" if (! -x "$DotPath"); } +if (defined($ENV{NM})) { + chomp($nmPath=$ENV{NM}); +} + if (!defined($nmPath) || $nmPath eq "") { chomp($nmPath=`which nm`); die "Can't find 'nm'" if (! -x "$nmPath"); @@ -96,7 +100,7 @@ sub gen_one_entry { print "
$lib