hotspot/make/bsd/makefiles/build_vm_def.sh
author erikj
Wed, 18 Feb 2015 11:25:34 +0100
changeset 29196 bd2c1b03aa8f
parent 18431 f801ce7e5c12
permissions -rw-r--r--
8072904: building jdk9 with jdk9 boot jdk can cause failure or incorrect results Reviewed-by: dholmes, dlong
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
18431
f801ce7e5c12 8014326: [OSX] All libjvm symbols are exported
dholmes
parents: 10565
diff changeset
    10
$NM -Uj $* | awk '
f801ce7e5c12 8014326: [OSX] All libjvm symbols are exported
dholmes
parents: 10565
diff changeset
    11
   { if ($3 ~ /^_ZTV/ || $3 ~ /^gHotSpotVM/) print "\t" $3 }
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents:
diff changeset
    12
   '