On the Mac, building in the vm object is complicated. Instead,

rely on external files.
This commit is contained in:
Eric Scharff 2007-10-26 16:10:12 -06:00
parent 46ac6f92ee
commit 789cc8e9a2
2 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,7 @@
extern "C" {
#ifndef __APPLE__
extern const uint8_t SYMBOL(start)[];
extern const uint8_t SYMBOL(size)[];
@ -19,5 +20,6 @@ extern "C" {
*size = reinterpret_cast<uintptr_t>(SYMBOL(size));
return SYMBOL(start);
}
#endif
} // extern "C"

View File

@ -36,6 +36,11 @@ build-cc = gcc
pthread = -pthread
lpthread = -lpthread
ifeq ($(platform),darwin)
pthread =
lpthread =
endif
cxx = $(build-cxx)
cc = $(build-cc)
ar = ar
@ -190,6 +195,10 @@ classpath-classes = \
$(call java-classes,$(classpath-sources),$(classpath),$(classpath-build))
classpath-object = $(native-build)/classpath-jar.o
ifeq ($(platform),darwin)
classpath-object =
endif
test-sources = $(shell find $(test) -name '*.java')
test-classes = $(call java-classes,$(test-sources),$(test),$(test-build))