diff make/lib/CompileLibjsig.gmk @ 12293:325a8906aca8

8169625: Libjsig build doesn't set flags for ppc64/s390 builds Reviewed-by: erikj
author simonis
date Mon, 14 Nov 2016 11:15:43 +0100
parents 15b3ef116f15
children
line wrap: on
line diff
--- a/make/lib/CompileLibjsig.gmk	Fri Nov 11 12:27:22 2016 +0100
+++ b/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)