@@ -226,7 +226,7 @@ AC_DEFUN([OPENJ9_CONFIGURE_DDR],
226
226
OPENJ9_ENABLE_DDR=false
227
227
elif test "x$enable_ddr" = x ; then
228
228
case "$OPENJ9_PLATFORM_CODE" in
229
- ap64|oa64|wa64|xa64|xl64|xz64)
229
+ ap64|oa64|rv64| wa64|xa64|xl64|xz64)
230
230
AC_MSG_RESULT ( [ yes (default for $OPENJ9_PLATFORM_CODE)] )
231
231
OPENJ9_ENABLE_DDR=true
232
232
;;
@@ -264,6 +264,9 @@ AC_DEFUN([OPENJ9_PLATFORM_EXTRACT_VARS_FROM_CPU],
264
264
aarch64)
265
265
OPENJ9_CPU=aarch64
266
266
;;
267
+ riscv64)
268
+ OPENJ9_CPU=riscv64
269
+ ;;
267
270
*)
268
271
AC_MSG_ERROR ( [ unsupported OpenJ9 cpu $1 ] )
269
272
;;
@@ -328,6 +331,11 @@ AC_DEFUN_ONCE([OPENJ9_PLATFORM_SETUP],
328
331
if test "x$COMPILE_TYPE" = xcross ; then
329
332
OPENJ9_BUILDSPEC="${OPENJ9_BUILDSPEC}_cross"
330
333
fi
334
+ elif test "x$OPENJ9_CPU" = xriscv64 ; then
335
+ OPENJ9_PLATFORM_CODE=rv64
336
+ if test "x$COMPILE_TYPE" = xcross ; then
337
+ OPENJ9_BUILDSPEC="${OPENJ9_BUILDSPEC}_cross"
338
+ fi
331
339
else
332
340
AC_MSG_ERROR ( [ Unsupported OpenJ9 cpu ${OPENJ9_CPU}!] )
333
341
fi
@@ -551,6 +559,22 @@ AC_DEFUN([CONFIGURE_OPENSSL],
551
559
OPENSSL_BUNDLE_LIB_PATH="${OPENSSL_DIR}/lib"
552
560
fi
553
561
fi
562
+ elif test -s "$OPENSSL_DIR/lib64/${LIBRARY_PREFIX}crypto${SHARED_LIBRARY_SUFFIX}" ; then
563
+ OPENSSL_CFLAGS="-I${OPENSSL_DIR}/include"
564
+ if test "x$BUNDLE_OPENSSL" = xyes ; then
565
+ # On Mac OSX, create local copy of the crypto library to update @rpath
566
+ # as the default is /usr/local/lib.
567
+ if test "x$OPENJDK_BUILD_OS" = xmacosx ; then
568
+ LOCAL_CRYPTO="$TOPDIR/openssl"
569
+ $MKDIR -p "${LOCAL_CRYPTO}"
570
+ $CP "${OPENSSL_DIR}/lib64/libcrypto.1.1.dylib" "${LOCAL_CRYPTO}"
571
+ $CP "${OPENSSL_DIR}/lib64/libcrypto.1.0.0.dylib" "${LOCAL_CRYPTO}"
572
+ $CP -a "${OPENSSL_DIR}/lib64/libcrypto.dylib" "${LOCAL_CRYPTO}"
573
+ OPENSSL_BUNDLE_LIB_PATH="${LOCAL_CRYPTO}"
574
+ else
575
+ OPENSSL_BUNDLE_LIB_PATH="${OPENSSL_DIR}/lib64"
576
+ fi
577
+ fi
554
578
elif test -s "$OPENSSL_DIR/${LIBRARY_PREFIX}crypto${SHARED_LIBRARY_SUFFIX}" ; then
555
579
OPENSSL_CFLAGS="-I${OPENSSL_DIR}/include"
556
580
if test "x$BUNDLE_OPENSSL" = xyes ; then
0 commit comments