-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build JITaaS with the same OpenSSL as the rest of OpenJ9 #5720
Comments
I will look at this one. |
We can add
|
OK, it seems that in the For our purposes for building the JIT I guess we can check if The only problem then is what to do at runtime, since the libraries will not be in the default search path. We don't have to care about the For |
Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS`. Issue eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS`. Issue eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
- Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS`. - Bundle libssl if `--with-openssl=fetched --enable-openssl-bundling` is set. It is required by JITaaS. Issue eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
- Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS`. - Bundle libssl if `--with-openssl=fetched --enable-openssl-bundling` is set. It is required by JITaaS. Issue eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
[skip ci] OpenJ9 build supports `--with-openssl=` flag which sets up openssl include path and library. JITaaS is built by searching the default places. This change checks and uses `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH`, if they are exported in `CUSTOM_COMPILER_ENV_VARS`. - If `--with-openssl=system` is set, JIT will link to OpenSSL lib specified by `OPENSSL_LIBS` - If `--with-openssl=fetched --enable-openssl-bundling` is set, JIT will link to OpenSSL lib specified by `OPENSSL_BUNDLE_LIB_PATH` - If `--with-openssl=fetched` is set, JIT will link to OpenSSL lib specified by `OPENSSL_DIR` Issue eclipse-openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
- Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS`. - Bundle libssl if `--with-openssl=fetched --enable-openssl-bundling` is set. It is required by JITaaS. Issue eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
- Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS`. - Bundle libssl if `--with-openssl=fetched --enable-openssl-bundling` is set. It is required by JITaaS. Issue eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
- Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. It is required by JITServer. Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, `OPENSSL_LIBS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system --enable-jitserver Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system --enable-jitserver Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system --enable-jitserver Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system --enable-jitserver Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
`JITServer` needs to be built with `libssl`. By default, it is built against the `OpenSSL` installed on the build machine. The same as when `--enable-jitserver --with-openssl=system` is specified. This change passes the `OpenSSL` build flags from OpenJDK to JIT build environment. - Add `OPENSSL_DIR`, `OPENSSL_CFLAGS`, and `OPENSSL_BUNDLE_LIB_PATH` to `CUSTOM_COMPILER_ENV_VARS` and `CMAKE_ARGS`. - Bundle `libssl` if `--with-openssl=fetched --enable-openssl-bundling` is set. Examples on the supported flags: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system The JIT build change is addressed in: eclipse-openj9/openj9#5789, eclipse-openj9/openj9#7846 This is a similar change as ibmruntimes/openj9-openjdk-jdk8#303 Issue: eclipse-openj9/openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
This commit depends on ibmruntimes/openj9-openjdk-jdk8#303. It checks flags passed from the JVM build environment: `OPENSSL_CFLAG`, `OPENSSL_DIR`, and `OPENSSL_BUNDLE_LIB_PATH`, in order to support the following OpenSSL build options: --enable-jitserver --with-openssl=fetched --enable-jitserver --with-openssl=fetched --enable-openssl-bundling --enable-jitserver --with-openssl=system This commit also ports enabling building JITServer on Power from the `jitaas` branch. Issue: eclipse-openj9#5720 Signed-off-by: Annabelle Huo <Annabelle.Huo@ibm.com>
OpenJ9 can now be built with OpenSSL support. When running
configure
you can specify--with-openssl=...
to choose which set of OpenSSL headers and libraries to build against. The options are system, fetched, and a path to an OpenSSL source tree. See here for details: https://github.com/ibmruntimes/openj9-openjdk-jdk8/blob/6186c40a2eb7bf12dc0139e349229f703e5f4194/jdk/make/closed/autoconf/custom-hook.m4#L507When building the JIT with JITaaS support we are unaware of that option and look for OpenSSL headers and libs in the default places, which is equivalent to
--with-openssl=system
. The JIT should instead become aware of that option and build against the same OpenSSL that the rest of the VM is building against.The text was updated successfully, but these errors were encountered: