8022617: Openjdk hotspot build is broken on BSD platforms using gcc
authordsamersoff
Thu, 12 Sep 2013 15:53:49 +0400
changeset 19956 9065fbafee8d
parent 19955 4700261a6edb
child 19957 04a38bb9ba15
child 19958 bfb37d724b0c
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
hotspot/make/bsd/makefiles/gcc.make
--- a/hotspot/make/bsd/makefiles/gcc.make	Wed Sep 11 14:30:17 2013 +0400
+++ b/hotspot/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