changeset 5236:1c6b721a3fbf

8022617: Openjdk hotspot build is broken on BSD platforms using gcc Summary: Enforce of preprocessing of all assembly sources by assembler-with-cpp Reviewed-by: dholmes, erikj
author dsamersoff
date Thu, 12 Sep 2013 15:53:49 +0400
parents 0f648fbe4404
children 225cedaf9a4b 623d923529df
files make/bsd/makefiles/gcc.make
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/bsd/makefiles/gcc.make	Wed Sep 11 14:30:17 2013 +0400
+++ b/make/bsd/makefiles/gcc.make	Thu Sep 12 15:53:49 2013 +0400
@@ -80,7 +80,7 @@
     HOSTCC  = $(CC)
   endif
 
-  AS   = $(CC) -c -x assembler-with-cpp
+  AS   = $(CC) -c 
 endif
 
 
@@ -347,6 +347,13 @@
   LDFLAGS += -mmacosx-version-min=$(MACOSX_VERSION_MIN)
 endif
 
+
+#------------------------------------------------------------------------
+# Assembler flags
+
+# Enforce prerpocessing of .s files
+ASFLAGS += -x assembler-with-cpp
+
 #------------------------------------------------------------------------
 # Linker flags