fix openjdk bootimage cross builds

We need to extract the OpenJDK classes into the build classpath
directory for the target platform before running the
bootimage-generator, or else it won't be able to find the classes.
This commit is contained in:
Joel Dice 2013-01-26 18:01:34 -07:00
parent 70a7a50a49
commit dec2095c63

View File

@ -1,4 +1,4 @@
MAKEFLAGS = -s
#MAKEFLAGS = -s
name = avian
version = 0.6
@ -1158,7 +1158,8 @@ $(static-library): $(vm-objects) $(classpath-objects) $(vm-heapwalk-objects) \
$(ar) cru $(@) $(^)
$(ranlib) $(@)
$(bootimage-object) $(codeimage-object): $(bootimage-generator)
$(bootimage-object) $(codeimage-object): $(bootimage-generator) \
$(build)/classpath.jar
$(<) -cp $(classpath-build) -bootimage $(bootimage-object) -codeimage $(codeimage-object) \
-bootimage-symbols _binary_bootimage_bin_start:_binary_bootimage_bin_end \
-codeimage-symbols _binary_codeimage_bin_start:_binary_codeimage_bin_end