Skip to content

Commit a02713a

Browse files
Use proper library path based on architecture
In Java8 there is another level of directories under the lib directory pertaining to the specific architecture for which the JDK is built. To address that difference, separate specification of path per architecture is required. Signed-off-by: Kostas Tsiounis <[email protected]>
1 parent becea18 commit a02713a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

closed/adds/jdk/src/share/native/jdk/crypto/jniprovider/NativeCrypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ find_crypto_library(jboolean traceEnabled, const char *chomepath)
646646
#if defined(_WIN32)
647647
static const char pathSuffix[] = "\\bin\\";
648648
#else /* defined(_WIN32) */
649-
static const char pathSuffix[] = "/lib/";
649+
static const char pathSuffix[] = "/lib" OPENJDK_TARGET_CPU_LIBDIR "/";
650650
#endif /* defined(_WIN32) */
651651

652652
size_t path_len = strlen(chomepath) + sizeof(pathSuffix) - 1;

jdk/make/lib/SecurityLibraries.gmk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ ifeq ($(WITH_OPENSSL), yes)
319319
LANG := C, \
320320
OPTIMIZATION := LOW, \
321321
CFLAGS := $(CFLAGS_JDKLIB) \
322+
-DOPENJDK_TARGET_CPU_LIBDIR='"$(OPENJDK_TARGET_CPU_LIBDIR)"' \
322323
-I$(SRC_ROOT)/closed/adds/jdk/src/share/native/jdk/crypto/jniprovider \
323324
-c $(OPENSSL_CFLAGS), \
324325
MAPFILE := $(SRC_ROOT)/closed/make/mapfiles/libjncrypto/mapfile-vers, \

0 commit comments

Comments
 (0)