Thu, 09 Dec 2010 20:12:06 -0500
7005007: Refine use of ALT_COMPILER_PATH to avoid conflict with JPRT usage
Summary: Check for CROSS_COMPILE_ARCH being set as an indicator to use ALT_COMPILER_PATH
Reviewed-by: acorn, ohair
never@1729 | 1 | #!/bin/sh |
never@1729 | 2 | |
bobv@2036 | 3 | # If we're cross compiling use that path for nm |
dholmes@2362 | 4 | if [ "$CROSS_COMPILE_ARCH" != "" ]; then |
bobv@2036 | 5 | NM=$ALT_COMPILER_PATH/nm |
bobv@2036 | 6 | else |
bobv@2036 | 7 | NM=nm |
bobv@2036 | 8 | fi |
bobv@2036 | 9 | |
bobv@2036 | 10 | $NM --defined-only $* | awk ' |
never@1729 | 11 | { if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";" } |
never@1729 | 12 | ' |