diff make/linux/makefiles/vm.make @ 11036:feae15578b2f

7122222: GC log is limited to 2G for 32-bit Summary: Enable large file support for generated 32-bit ostream.o on Linux and Solaris (as only the two need this) by setting -D_FILE_OFFSET_BITS=64 in compilation Reviewed-by: tbell, mgerdin, dcubed Contributed-by: tamao <tao.mao@oracle.com>
author tamao
date Fri, 07 Jun 2013 09:46:58 -0700
parents f2110083203d
children 90d6c221d4e5
line wrap: on
line diff
--- a/make/linux/makefiles/vm.make	Fri Jun 21 00:59:12 2013 -0700
+++ b/make/linux/makefiles/vm.make	Fri Jun 07 09:46:58 2013 -0700
@@ -107,6 +107,10 @@
 # File specific flags
 CXXFLAGS += $(CXXFLAGS/BYFILE)
 
+# Large File Support
+ifneq ($(LP64), 1)
+CXXFLAGS/ostream.o += -D_FILE_OFFSET_BITS=64
+endif # ifneq ($(LP64), 1)
 
 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
 CFLAGS += $(CFLAGS_WARN/BYFILE)