changeset 5248:ac5024504439

7151898: Check for LANG in Mac OS X jdk build sanity check [macosx] Reviewed-by: ohair, smarks
author michaelm
date Thu, 15 Mar 2012 16:45:55 +0000
parents 2900d4ae2d39
children cfe2328912b3
files make/common/shared/Sanity.gmk
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/shared/Sanity.gmk	Thu Mar 08 13:44:33 2012 -0800
+++ b/make/common/shared/Sanity.gmk	Thu Mar 15 16:45:55 2012 +0000
@@ -348,7 +348,13 @@
 	    "        Try setting LANG to 'C'. \n" \
 	    "" >> $(WARNING_FILE) ; \
         fi
+ifeq ($(PLATFORM), macosx)
+	@if [ "$(LANG)" = "" ]; then \
+	  $(ECHO) "ERROR: LANG must be set on Mac OS X. Recommended value is \"C\"" >> $(ERROR_FILE) ; \
+	fi
 endif
+endif
+
 
 ######################################################
 # Check the Windows cygwin version