Rebuilt windows images

This commit is contained in:
xerial 2017-01-19 14:15:59 -08:00
parent fb530fd0fb
commit 7e8346ba3c
6 changed files with 26 additions and 9 deletions

View File

@ -160,8 +160,8 @@ mac32: jni-header
mac64: jni-header
docker run -it $(DOCKER_RUN_OPTS) -v $$PWD:/workdir -e CROSS_TRIPLE=x86_64-apple-darwin multiarch/crossbuild make clean-native native OS_NAME=Mac OS_ARCH=x86_64
linux32:
$(MAKE) native OS_NAME=Linux OS_ARCH=x86
linux32: jni-header
docker run $(DOCKER_RUN_OPTS) -ti -v $$PWD:/work xerial/centos5-linux-x86 bash -c 'make clean-native native OS_NAME=Linux OS_ARCH=x86'
freebsd64:
$(MAKE) native OS_NAME=FreeBSD OS_ARCH=x86_64

23
docker/Dockerfile.cxx-pic Normal file
View File

@ -0,0 +1,23 @@
FROM centos:5
MAINTAINER Taro L. Saito <leo@xerial.org>
RUN yum -y install make gcc gcc-c++ glibc-devel perl wget bzip2 \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /tmp/work \
&& cd /tmp/work \
&& wget http://www.netgull.com/gcc/releases/gcc-4.8.3/gcc-4.8.3.tar.gz \
&& tar xvfz gcc-4.8.3.tar.gz \
&& cd gcc-4.8.3 \
&& ./contrib/download_prerequisites \
&& cd .. \
&& mkdir objdir
RUN cd /tmp/work/objdir \
&& ../gcc-4.8.3/configure --prefix=/usr/local/gcc-4.8.3 CXXFLAGS=-fPIC CFLAGS=-fPIC --enable-languages=c,c++ \
&& make \
&& make install
&& rm -rf /tmp/work
ENV PATH /usr/local/gcc-4.8.3/bin:$PATH
WORKDIR /work

View File

@ -1,6 +0,0 @@
FROM centos:5
MAINTAINER Taro L. Saito <leo@xerial.org>
RUN yum -y install gcc make perl
WORKDIR /work

View File

@ -176,11 +176,11 @@ public class OSInfo {
}
// For java7, we stil need to if run some shell commands to determine ABI of JVM
String javaHome = System.getProperty("java.home");
try {
// determine if first JVM found uses ARM hard-float ABI
int exitCode = Runtime.getRuntime().exec("which readelf").waitFor();
if(exitCode == 0) {
String javaHome = System.getProperty("java.home");
String[] cmdarray = {"/bin/sh", "-c", "find '" + javaHome +
"' -name 'libjvm.so' | head -1 | xargs readelf -A | " +
"grep 'Tag_ABI_VFP_args: VFP registers'"};