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
Copy file name to clipboardExpand all lines: README.md
+9-1
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ When building on Solaris use
107
107
108
108
A file `target/snappy-java-$(version).jar` is the product additionally containing the native library built for your platform.
109
109
110
-
## Building linux x86_64 binary
110
+
## Building linux x86\_64 binary
111
111
112
112
snappy-java tries to static link libstdc++ to increase the availability for various Linux versions. However, standard distributions of 64-bit Linux OS rarely provide libstdc++ compiled with `-fPIC` option. I currently uses custom g++, compiled as follows:
113
113
@@ -127,6 +127,14 @@ $ make install
127
127
128
128
This g++ build enables static linking of libstdc++. For more infomation on building GCC, see GCC's home page.
129
129
130
+
## Building Linux s390/s390x binaries
131
+
132
+
Older snapshots of snappy contain a buggy config.h.in that does not work properly on some big-endian platforms like Linux on IBM z (s390/s390x). Building snappy-java on s390/s390x requires fetching the snappy source from GitHub, and processing the source with autoconf to obtain a usable config.h. On a RHEL s390x system, these steps produced a working 64-bit snappy-java build (the process should be similar for other distributions):
$ make USE_GIT=1 GIT_REPO_URL=https://github.com/google/snappy.git GIT_SNAPPY_BRANCH=master IBM_JDK_7=1
137
+
130
138
## Cross-compiling for other platforms
131
139
The Makefile contains rules for cross-compiling the native library for other platforms so that the snappy-java JAR can support multiple platforms. For example, to build the native libraries for x86 Linux, x86 and x86-64 Windows, and soft- and hard-float ARM:
0 commit comments