diff make/linux/makefiles/build_vm_def.sh @ 1696:688a538aa654

Merge
author trims
date Fri, 13 Aug 2010 10:55:42 -0700
parents 126ea7725993
children a5610f0862fe
line wrap: on
line diff
--- a/make/linux/makefiles/build_vm_def.sh	Fri Aug 06 12:51:54 2010 -0700
+++ b/make/linux/makefiles/build_vm_def.sh	Fri Aug 13 10:55:42 2010 -0700
@@ -1,5 +1,12 @@
 #!/bin/sh
 
-nm --defined-only $* | awk '
+# If we're cross compiling use that path for nm
+if [ "$ALT_COMPILER_PATH" != "" ]; then 
+NM=$ALT_COMPILER_PATH/nm
+else
+NM=nm
+fi
+
+$NM --defined-only $* | awk '
    { if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";" }
    '