Browse files

Build linux amd64 native lib. Disabled -static-libstdc++

  • Loading branch information...
1 parent c284cc6 commit 882ebf35321f175b115802cc5e15b4c69c4b9b1b @xerial committed Mar 27, 2013
View
2 Makefile.common
@@ -68,7 +68,7 @@ Linux-i386_SNAPPY_FLAGS:=
Linux-amd64_CXX := $(CROSS_PREFIX)g++
Linux-amd64_STRIP := $(CROSS_PREFIX)strip
Linux-amd64_CXXFLAGS := -include lib/inc_linux/jni_md.h -I$(JAVA_HOME)/include -O2 -fPIC -fvisibility=hidden -m64
-Linux-amd64_LINKFLAGS := -shared -static-libgcc -static-libstdc++
+Linux-amd64_LINKFLAGS := -shared -static-libgcc # -static-libstdc++
Linux-amd64_LIBNAME := libsnappyjava.so
Linux-amd64_SNAPPY_FLAGS :=
View
24 src/main/java/org/xerial/snappy/SnappyNative.h
@@ -18,22 +18,6 @@ JNIEXPORT jstring JNICALL Java_org_xerial_snappy_SnappyNative_nativeLibraryVersi
/*
* Class: org_xerial_snappy_SnappyNative
* Method: rawCompress
- * Signature: (JJJ)J
- */
-JNIEXPORT jlong JNICALL Java_org_xerial_snappy_SnappyNative_rawCompress__JJJ
- (JNIEnv *, jobject, jlong, jlong, jlong);
-
-/*
- * Class: org_xerial_snappy_SnappyNative
- * Method: rawUncompress
- * Signature: (JJJ)J
- */
-JNIEXPORT jlong JNICALL Java_org_xerial_snappy_SnappyNative_rawUncompress__JJJ
- (JNIEnv *, jobject, jlong, jlong, jlong);
-
-/*
- * Class: org_xerial_snappy_SnappyNative
- * Method: rawCompress
* Signature: (Ljava/nio/ByteBuffer;IILjava/nio/ByteBuffer;I)I
*/
JNIEXPORT jint JNICALL Java_org_xerial_snappy_SnappyNative_rawCompress__Ljava_nio_ByteBuffer_2IILjava_nio_ByteBuffer_2I
@@ -89,14 +73,6 @@ JNIEXPORT jint JNICALL Java_org_xerial_snappy_SnappyNative_uncompressedLength__L
/*
* Class: org_xerial_snappy_SnappyNative
- * Method: uncompressedLength
- * Signature: (JJ)J
- */
-JNIEXPORT jlong JNICALL Java_org_xerial_snappy_SnappyNative_uncompressedLength__JJ
- (JNIEnv *, jobject, jlong, jlong);
-
-/*
- * Class: org_xerial_snappy_SnappyNative
* Method: isValidCompressedBuffer
* Signature: (Ljava/nio/ByteBuffer;II)Z
*/
View
BIN src/main/resources/org/xerial/snappy/native/Linux/amd64/libsnappyjava.so
Binary file not shown.

0 comments on commit 882ebf3

Please sign in to comment.