File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# ===========================================================================
2- # (c) Copyright IBM Corp. 2018, 2022 All Rights Reserved
2+ # (c) Copyright IBM Corp. 2018, 2023 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
@@ -88,12 +88,18 @@ ifeq (,$(OPENSSL_TARGET))
8888 $(error Unsupported platform $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU))
8989endif # OPENSSL_TARGET
9090
91+ ifneq (,$(CCACHE))
92+ # If ccache is enabled and the environment contains either CC or CXX, their
93+ # values (as defined in this make) are propagated to the instance of make
94+ # which will build openssl causing it to fail. Instead, pass along CC and
95+ # CXX without the ccache wrapper.
96+ OPENSSL_MAKE += CC=$(ac_cv_prog_CC) CXX=$(ac_cv_prog_CXX)
97+ endif # CCACHE
98+
9199build_openssl :
92- ifeq ($(BUILD_OPENSSL), yes)
93100 @$(ECHO) Compiling OpenSSL in $(OPENSSL_DIR) for $(OPENSSL_TARGET)
94101 ( $(OPENSSL_CONFIG_SETUP) $(CD) $(OPENSSL_DIR) && $(PERL) Configure $(OPENSSL_TARGET) shared )
95102 $(OPENSSL_PATCH)
96103 ( $(OPENSSL_MAKE_SETUP) $(CD) $(OPENSSL_DIR) && $(OPENSSL_MAKE) )
97- endif # BUILD_OPENSSL
98104
99105.PHONY : build_openssl
You can’t perform that action at this time.
0 commit comments