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 1
1
# ===========================================================================
2
- # (c) Copyright IBM Corp. 2018, 2024 All Rights Reserved
2
+ # (c) Copyright IBM Corp. 2018, 2025 All Rights Reserved
3
3
# ===========================================================================
4
4
# This code is free software; you can redistribute it and/or modify it
5
5
# under the terms of the GNU General Public License version 2 only, as
@@ -92,6 +92,11 @@ ifeq (,$(OPENSSL_TARGET))
92
92
$(error Unsupported platform $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU))
93
93
endif # OPENSSL_TARGET
94
94
95
+ OPENSSL_CFLAGS :=
96
+ ifeq ($(OPENJDK_TARGET_CPU), s390x)
97
+ OPENSSL_CFLAGS := -march=z10
98
+ endif
99
+
95
100
ifneq (,$(CCACHE))
96
101
# If ccache is enabled and the environment contains either CC or CXX, their
97
102
# values (as defined in this make) are propagated to the instance of make
@@ -101,8 +106,8 @@ ifneq (,$(CCACHE))
101
106
endif # CCACHE
102
107
103
108
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 )
106
111
$(OPENSSL_PATCH)
107
112
( $(OPENSSL_MAKE_SETUP) $(CD) $(OPENSSL_DIR) && $(OPENSSL_MAKE) )
108
113
You can’t perform that action at this time.
0 commit comments