File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -255,11 +255,12 @@ CMAKE_ARGS := \
255255 -DOMR_MIXED_REFERENCES_MODE=$(OMR_MIXED_REFERENCES_MODE) \
256256 -DOPENJ9_BUILD=true \
257257 -DOPENJ9_SHA=$(OPENJ9_SHA) \
258- -DOPENJDK_VERSION_NUMBER_FOUR_POSITIONS=$(VERSION_NUMBER_FOUR_POSITIONS) \
259258 #
260259
261- # Windows can't specify compiler overrides since we already generated wrapper scripts.
262- ifneq (windows,$(OPENJDK_TARGET_OS))
260+ ifeq ($(call isTargetOs, windows), true)
261+ CMAKE_ARGS += -DOPENJDK_VERSION_NUMBER_FOUR_POSITIONS=$(VERSION_NUMBER_FOUR_POSITIONS)
262+ else
263+ # Windows can't specify compiler overrides since we use wrapper scripts.
263264 # Override the compilers if an OPENJ9_* value is specified.
264265 # Otherwise, toolchain.cmake has the default values.
265266 ifneq (,$(OPENJ9_CC))
@@ -294,10 +295,6 @@ endif # OPENJ9_ENABLE_JFR
294295ifeq (true,$(OPENJ9_ENABLE_JITSERVER))
295296 CMAKE_ARGS += -DJ9VM_OPT_JITSERVER=ON
296297
297- ifneq (,$(OPENSSL_CFLAGS))
298- CMAKE_ARGS += -DOPENSSL_CFLAGS="$(OPENSSL_CFLAGS)"
299- endif
300-
301298 ifneq (,$(OPENSSL_DIR))
302299 CMAKE_ARGS += -DOPENSSL_DIR="$(OPENSSL_DIR)"
303300 endif
Original file line number Diff line number Diff line change @@ -92,9 +92,10 @@ ifeq (,$(OPENSSL_TARGET))
9292 $(error Unsupported platform $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU))
9393endif # OPENSSL_TARGET
9494
95- OPENSSL_CFLAGS :=
9695ifeq ($(OPENJDK_TARGET_CPU), s390x)
97- OPENSSL_CFLAGS := -march=z10
96+ OPENSSL_CONFIG_CFLAGS := -march=z10
97+ else
98+ OPENSSL_CONFIG_CFLAGS :=
9899endif
99100
100101ifneq (,$(CCACHE))
@@ -106,8 +107,8 @@ ifneq (,$(CCACHE))
106107endif # CCACHE
107108
108109build_openssl :
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 )
110+ @$(ECHO) Compiling OpenSSL in $(OPENSSL_DIR) for $(OPENSSL_TARGET)$(if $(OPENSSL_CONFIG_CFLAGS), with additional CFLAGS $(OPENSSL_CONFIG_CFLAGS) )
111+ ( $(OPENSSL_CONFIG_SETUP) $(CD) $(OPENSSL_DIR) && $(PERL) Configure $(OPENSSL_CONFIG_CFLAGS ) $(OPENSSL_TARGET) shared )
111112 $(OPENSSL_PATCH)
112113 ( $(OPENSSL_MAKE_SETUP) $(CD) $(OPENSSL_DIR) && $(OPENSSL_MAKE) )
113114
You can’t perform that action at this time.
0 commit comments