make/linux/makefiles/vm.make

changeset 7573
7b93939e093e
parent 7059
f933a15469d4
child 7598
ddce0b7cee93
     1.1 --- a/make/linux/makefiles/vm.make	Fri Jan 30 10:40:08 2015 +0100
     1.2 +++ b/make/linux/makefiles/vm.make	Fri Jan 23 22:39:24 2015 -0500
     1.3 @@ -245,8 +245,14 @@
     1.4  	rm -f $@
     1.5  	cat $^ > $@
     1.6  
     1.7 +VMDEF_PAT  = ^_ZTV
     1.8 +VMDEF_PAT := ^gHotSpotVM|$(VMDEF_PAT)
     1.9 +VMDEF_PAT := ^UseSharedSpaces$$|$(VMDEF_PAT)
    1.10 +VMDEF_PAT := ^_ZN9Arguments17SharedArchivePathE$$|$(VMDEF_PAT)
    1.11 +
    1.12  vm.def: $(Res_Files) $(Obj_Files)
    1.13 -	sh $(GAMMADIR)/make/linux/makefiles/build_vm_def.sh *.o > $@
    1.14 +	$(QUIETLY) $(NM) --defined-only $(Obj_Files) | sort -k3 -u | \
    1.15 +	awk '$$3 ~ /$(VMDEF_PAT)/ { print "\t" $$3 ";" }' > $@
    1.16  
    1.17  mapfile_ext:
    1.18  	rm -f $@

mercurial