Skip to content

Commit b4d9c84

Browse files
authored
Merge pull request ibmruntimes#478 from jasonkatonica/katonica/issue/s390xopensslarch
Target z10 architecture for OpenSSL Linux on z
2 parents ef2f9e4 + 1225681 commit b4d9c84

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

closed/openssl.gmk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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))
9393
endif # OPENSSL_TARGET
9494

95+
OPENSSL_CFLAGS :=
96+
ifeq ($(OPENJDK_TARGET_CPU), s390x)
97+
OPENSSL_CFLAGS := -march=z10
98+
endif
99+
95100
ifneq (,$(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))
101106
endif # CCACHE
102107

103108
build_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

0 commit comments

Comments
 (0)