LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File java-1.7.0-openjdk-makefiles-zero.patch of Package java-1_7_0-openjdk (Project openSUSE:Factory:ARM)

--- openjdk/hotspot/make/linux/makefiles/zero.make
+++ openjdk/hotspot/make/linux/makefiles/zero.make
@@ -34,3 +34,13 @@ VM_SUBDIR = server
 # Make sure libffi is included
 CFLAGS += $(LIBFFI_CFLAGS)
 LIBS_VM += $(LIBFFI_LIBS)
+
+# Specify that the CPU is little endian, if necessary
+ifeq ($(ZERO_ENDIANNESS), little)
+  CFLAGS += -DVM_LITTLE_ENDIAN
+endif
+
+# Specify that the CPU is 64 bit, if necessary
+ifeq ($(ARCH_DATA_MODEL), 64)
+  CFLAGS += -D_LP64=1
+endif