Skip to content
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

How to specify 64 bit JNI build on Solaris (JVM runs 64 bit) #90

Closed
cndcourt opened this issue Nov 4, 2016 · 2 comments
Closed

How to specify 64 bit JNI build on Solaris (JVM runs 64 bit) #90

cndcourt opened this issue Nov 4, 2016 · 2 comments

Comments

@cndcourt
Copy link

cndcourt commented Nov 4, 2016

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()

@cndcourt
Copy link
Author

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
Copy link
Member

odaira commented May 23, 2017

I applied the proposed change to lz4.c. Thanks!

@odaira odaira closed this as completed May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants