additional tweaks to make embedded resources work on darwin

This commit is contained in:
Joel Dice 2008-01-23 10:12:56 -07:00
parent 618684de6e
commit 6bca3a8665
2 changed files with 3 additions and 5 deletions

View File

@ -298,7 +298,7 @@ $(binaryToMacho): $(src)/binaryToMacho.cpp
$(classpath-object): $(build)/classpath.jar $(binaryToMacho)
ifeq ($(platform),darwin)
$(binaryToMacho) $(build)/classpath.jar \
__binary_classpath_jar_data __binary_classpath_jar_size > $(@)
__binary_classpath_jar_start __binary_classpath_jar_size > $(@)
else
(wd=$$(pwd); \
cd $(build); \

View File

@ -19,10 +19,9 @@ void operator delete(void*) { abort(); }
# define SYMBOL(x) _binary_classpath_jar_##x
#endif
extern "C" {
#define BOOT_CLASSPATH "[classpathJar]"
#ifndef __APPLE__
# define BOOT_CLASSPATH "[classpathJar]"
extern "C" {
extern const uint8_t SYMBOL(start)[];
extern const uint8_t SYMBOL(size)[];
@ -33,7 +32,6 @@ extern "C" {
*size = reinterpret_cast<uintptr_t>(SYMBOL(size));
return SYMBOL(start);
}
#endif
}