HADOOP-16359. Bundle ZSTD native in branch-2. Contributed by Chao Sun.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
parent
64102e865f
commit
9ab3cbf4d3
|
@ -108,7 +108,14 @@ for i in "$@"; do
|
||||||
--snappylibbundle=*)
|
--snappylibbundle=*)
|
||||||
SNAPPYLIBBUNDLE=${i#*=}
|
SNAPPYLIBBUNDLE=${i#*=}
|
||||||
;;
|
;;
|
||||||
|
--zstdbinbundle=*)
|
||||||
|
ZSTDBINBUNDLE=${i#*=}
|
||||||
|
;;
|
||||||
|
--zstdlib=*)
|
||||||
|
ZSTDLIB=${i#*=}
|
||||||
|
;;
|
||||||
|
--zstdlibbundle=*)
|
||||||
|
ZSTDLIBBUNDLE=${i#*=}
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -133,6 +140,8 @@ if [[ -d "${LIB_DIR}" ]]; then
|
||||||
|
|
||||||
bundle_native_lib "${SNAPPYLIBBUNDLE}" "snappy.lib" "snappy" "${SNAPPYLIB}"
|
bundle_native_lib "${SNAPPYLIBBUNDLE}" "snappy.lib" "snappy" "${SNAPPYLIB}"
|
||||||
|
|
||||||
|
bundle_native_lib "${ZSTDLIBBUNDLE}" "zstd.lib" "zstd" "${ZSTDLIB}"
|
||||||
|
|
||||||
bundle_native_lib "${OPENSSLLIBBUNDLE}" "openssl.lib" "crypto" "${OPENSSLLIB}"
|
bundle_native_lib "${OPENSSLLIBBUNDLE}" "openssl.lib" "crypto" "${OPENSSLLIB}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -151,6 +160,8 @@ if [[ -d "${BIN_DIR}" ]] ; then
|
||||||
|
|
||||||
bundle_native_bin "${SNAPPYBINBUNDLE}" "${SNAPPYLIBBUNDLE}" "snappy.lib" "snappy" "${SNAPPYLIB}"
|
bundle_native_bin "${SNAPPYBINBUNDLE}" "${SNAPPYLIBBUNDLE}" "snappy.lib" "snappy" "${SNAPPYLIB}"
|
||||||
|
|
||||||
|
bundle_native_bin "${ZSTDBINBUNDLE}" "${ZSTDLIBBUNDLE}" "zstd.lib" "zstd" "${ZSTDLIB}"
|
||||||
|
|
||||||
bundle_native_bin "${OPENSSLBINBUNDLE}" "${OPENSSLLIBBUNDLE}" "openssl.lib" "crypto" "${OPENSSLLIB}"
|
bundle_native_bin "${OPENSSLBINBUNDLE}" "${OPENSSLLIBBUNDLE}" "openssl.lib" "crypto" "${OPENSSLLIB}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue