You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
How to specify 64 bit JNI build on Solaris (JVM runs 64 bit) #90
Hi
I can build the lz4-java.jar on Solaris and get the SO. But it is built by default - 32 BIT. I'm not very ANT knowledgeable. but the compiler option is "-m64". Can someone help with the Ant build.xml directive?
Thanks folks! Right now we are just using javaSafeInstance()
Activity
cndcourt commentedon Nov 26, 2016
Hey! This worked - but I have no idea how the source change would be made.
In the lz4.c file I added a test for the Solaris 64 bit support: _LP64
#if (defined(x86_64) || defined(_M_X64) || defined(_WIN64)
|| defined(64BIT) || defined(__mips64) || defined(_LP64) \ <--- ADDED THIS
define LZ4_ARCH64 1
#else
define LZ4_ARCH64 0
odaira commentedon May 23, 2017
I applied the proposed change to lz4.c. Thanks!