view make/linux/makefiles/build_vm_def.sh @ 1977:c7db7adb83b4

6987107: Add variable to add to but not modify non-fcs version string Reviewed-by: jcoomes, dholmes, andrew, kvn
author ohair
date Tue, 30 Nov 2010 18:07:18 -0800
parents 126ea7725993
children a5610f0862fe
line wrap: on
line source

#!/bin/sh

# 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 ";" }
   '