hotspot/make/bsd/makefiles/build_vm_def.sh
author never
Sun, 25 Sep 2011 16:03:29 -0700
changeset 10565 dc90c239f4ec
child 18431 f801ce7e5c12
permissions -rw-r--r--
7089790: integrate bsd-port changes Reviewed-by: kvn, twisti, jrose Contributed-by: Kurt Miller <kurt@intricatesoftware.com>, Greg Lewis <glewis@eyesbeyond.com>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, Landon Fuller <landonf@plausible.coop>, The FreeBSD Foundation <board@freebsdfoundation.org>, Michael Franz <mvfranz@gmail.com>, Roger Hoover <rhoover@apple.com>, Alexander Strange <astrange@apple.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     1
#!/bin/sh
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     2
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     3
# If we're cross compiling use that path for nm
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     4
if [ "$CROSS_COMPILE_ARCH" != "" ]; then 
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     5
NM=$ALT_COMPILER_PATH/nm
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     6
else
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     7
NM=nm
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     8
fi
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
     9
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    10
$NM --defined-only $* | awk '
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    11
   { if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 ";" }
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    12
   '