8169625: Libjsig build doesn't set flags for ppc64/s390 builds
authorsimonis
Mon, 14 Nov 2016 11:15:43 +0100
changeset 42559 f71b844f33d1
parent 42558 fc8b322a0ad3
child 42560 95af45781076
child 42567 fd103115da89
8169625: Libjsig build doesn't set flags for ppc64/s390 builds Reviewed-by: erikj
hotspot/make/lib/CompileLibjsig.gmk
--- a/hotspot/make/lib/CompileLibjsig.gmk	Fri Nov 11 12:27:22 2016 +0100
+++ b/hotspot/make/lib/CompileLibjsig.gmk	Mon Nov 14 11:15:43 2016 +0100
@@ -48,6 +48,12 @@
         LIBJSIG_CPU_FLAGS := -m64
       else ifeq ($(OPENJDK_TARGET_CPU), x86)
         LIBJSIG_CPU_FLAGS := -m32 -march=i586
+      else ifeq ($(OPENJDK_TARGET_CPU), ppc64)
+        LIBJSIG_CPU_FLAGS := -mcpu=powerpc64 -mtune=power5
+      else ifeq ($(OPENJDK_TARGET_CPU), ppc64le)
+        LIBJSIG_CPU_FLAGS := -DABI_ELFv2 -mcpu=power8 -mtune=power8
+      else ifeq ($(OPENJDK_TARGET_CPU), s390x)
+        LIBJSIG_CPU_FLAGS := -mbackchain -march=z10
       endif
 
     else ifeq ($(OPENJDK_TARGET_OS), solaris)