File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11# ===========================================================================
2- # (c) Copyright IBM Corp. 2018, 2024 All Rights Reserved
2+ # (c) Copyright IBM Corp. 2018, 2025 All Rights Reserved
33# ===========================================================================
44# This code is free software; you can redistribute it and/or modify it
55# under the terms of the GNU General Public License version 2 only, as
@@ -92,6 +92,11 @@ ifeq (,$(OPENSSL_TARGET))
9292 $(error Unsupported platform $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU))
9393endif # OPENSSL_TARGET
9494
95+ OPENSSL_CFLAGS :=
96+ ifeq ($(OPENJDK_TARGET_CPU), s390x)
97+ OPENSSL_CFLAGS := -march=z10
98+ endif
99+
95100ifneq (,$(CCACHE))
96101 # If ccache is enabled and the environment contains either CC or CXX, their
97102 # values (as defined in this make) are propagated to the instance of make
@@ -101,8 +106,8 @@ ifneq (,$(CCACHE))
101106endif # CCACHE
102107
103108build_openssl :
104- @$(ECHO) Compiling OpenSSL in $(OPENSSL_DIR) for $(OPENSSL_TARGET)
105- ( $(OPENSSL_CONFIG_SETUP) $(CD) $(OPENSSL_DIR) && $(PERL) Configure $(OPENSSL_TARGET) shared )
109+ @$(ECHO) Compiling OpenSSL in $(OPENSSL_DIR) for $(OPENSSL_TARGET) with additional CFLAGS $(OPENSSL_CFLAGS)
110+ ( $(OPENSSL_CONFIG_SETUP) $(CD) $(OPENSSL_DIR) && $(PERL) Configure $(OPENSSL_CFLAGS) $( OPENSSL_TARGET) shared )
106111 $(OPENSSL_PATCH)
107112 ( $(OPENSSL_MAKE_SETUP) $(CD) $(OPENSSL_DIR) && $(OPENSSL_MAKE) )
108113
You can’t perform that action at this time.
0 commit comments