Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
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

Closed

Description

@cndcourt

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

  1. cndcourt commented on Nov 26, 2016

    @cndcourt
    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

  2. odaira commented on May 23, 2017

    @odaira
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions