File: 01-load-library.patch

package info (click to toggle)
snappy-java 1.1.2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,964 kB
  • ctags: 591
  • sloc: java: 4,322; sh: 437; xml: 431; cpp: 215; makefile: 146; python: 118
file content (14 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Load the native library from the library path
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/src/main/java/org/xerial/snappy/SnappyLoader.java
+++ b/src/main/java/org/xerial/snappy/SnappyLoader.java
@@ -289,7 +289,7 @@
     static File findNativeLibrary()
     {
 
-        boolean useSystemLib = Boolean.parseBoolean(System.getProperty(KEY_SNAPPY_USE_SYSTEMLIB, "false"));
+        boolean useSystemLib = Boolean.parseBoolean(System.getProperty(KEY_SNAPPY_USE_SYSTEMLIB, "true"));
         boolean disabledBundledLibs = Boolean
                 .parseBoolean(System.getProperty(KEY_SNAPPY_DISABLE_BUNDLED_LIBS, "false"));
         if (useSystemLib || disabledBundledLibs) {