|
|
@ -13,21 +13,25 @@ cd /rocksdb-local-build |
|
|
|
|
|
|
|
|
|
|
|
# Use scl devtoolset if available |
|
|
|
# Use scl devtoolset if available |
|
|
|
if hash scl 2>/dev/null; then |
|
|
|
if hash scl 2>/dev/null; then |
|
|
|
if scl --list | grep -q 'devtoolset-7'; then |
|
|
|
if scl --list | grep -q 'devtoolset-8'; then |
|
|
|
# CentOS 7+ |
|
|
|
# CentOS 6+ |
|
|
|
scl enable devtoolset-7 'make clean-not-downloaded' |
|
|
|
scl enable devtoolset-8 'make clean-not-downloaded' |
|
|
|
scl enable devtoolset-7 'PORTABLE=1 make -j2 rocksdbjavastatic' |
|
|
|
scl enable devtoolset-8 'PORTABLE=1 make -j2 rocksdbjavastatic' |
|
|
|
elif scl --list | grep -q 'devtoolset-2'; then |
|
|
|
elif scl --list | grep -q 'devtoolset-7'; then |
|
|
|
# CentOS 5 or 6 |
|
|
|
# CentOS 6+ |
|
|
|
scl enable devtoolset-2 'make clean-not-downloaded' |
|
|
|
scl enable devtoolset-7 'make clean-not-downloaded' |
|
|
|
scl enable devtoolset-2 'PORTABLE=1 make -j2 rocksdbjavastatic' |
|
|
|
scl enable devtoolset-7 'PORTABLE=1 make -j2 rocksdbjavastatic' |
|
|
|
else |
|
|
|
elif scl --list | grep -q 'devtoolset-2'; then |
|
|
|
echo "Could not find devtoolset" |
|
|
|
# CentOS 5 or 6 |
|
|
|
exit 1; |
|
|
|
scl enable devtoolset-2 'make clean-not-downloaded' |
|
|
|
fi |
|
|
|
scl enable devtoolset-2 'PORTABLE=1 make -j2 rocksdbjavastatic' |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
echo "Could not find devtoolset" |
|
|
|
|
|
|
|
exit 1; |
|
|
|
|
|
|
|
fi |
|
|
|
else |
|
|
|
else |
|
|
|
make clean-not-downloaded |
|
|
|
make clean-not-downloaded |
|
|
|
PORTABLE=1 make -j2 rocksdbjavastatic |
|
|
|
PORTABLE=1 make -j2 rocksdbjavastatic |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
cp java/target/librocksdbjni-linux*.so java/target/rocksdbjni-*-linux*.jar java/target/rocksdbjni-*-linux*.jar.sha1 /rocksdb-java-target |
|
|
|
cp java/target/librocksdbjni-linux*.so java/target/rocksdbjni-*-linux*.jar java/target/rocksdbjni-*-linux*.jar.sha1 /rocksdb-java-target |
|
|
|