hotspot/make/linux/makefiles/gcc.make
changeset 33638 ef49ed90010b
parent 33626 3c94db05e903
parent 33634 d649141cb203
child 34625 0fe552410730
--- a/hotspot/make/linux/makefiles/gcc.make	Thu Nov 05 19:31:57 2015 +0100
+++ b/hotspot/make/linux/makefiles/gcc.make	Fri Nov 06 11:34:03 2015 +0100
@@ -61,6 +61,11 @@
   CC_VER_MAJOR := $(shell $(CC) -dumpversion | sed 's/egcs-//' | cut -d'.' -f1)
   CC_VER_MINOR := $(shell $(CC) -dumpversion | sed 's/egcs-//' | cut -d'.' -f2)
   CC_VER_MICRO := $(shell $(CC) -dumpversion | sed 's/egcs-//' | cut -d'.' -f3)
+  # Workaround Ubuntu bug where -dumpversion doesn't print a micro version
+  # https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1360404
+  ifeq ($(CC_VER_MICRO),)
+    CC_VER_MICRO := "0"
+  endif
 endif
 
 ifeq ($(USE_CLANG), true)