# Monkeypatch to disable strtonum for <11.0 support
"${SED}"-i''-E's/strsep strtonum/strsep/g' configure || abort "Failed to monkeypatch strtonum in LibreSSL with code $?"
./configure --disable-dependency-tracking--disable-tests--disable-shared--prefix="${BUILD_DIR}""${EXTRA_OPTS[@]}"|| abort "Failed to configure LibreSSL with code $?"
make -j"$(getconf _NPROCESSORS_ONLN)"|| abort "Failed to build LibreSSL with code $?"
make install|| abort "Failed to copy LibreSSL build files with code $?"
# shellcheck disable=SC2015
rm-rf"${OUTPUT_PATH}"&&mkdir"${OUTPUT_PATH}"|| abort "Failed to create output directory ${OUTPUT_PATH} with code $?"
cp-r"${BUILD_DIR}/include""${BUILD_DIR}/lib""${OUTPUT_PATH}/"|| abort "Failed to copy LibreSSL libraries to output directory with code $?"
popd> /dev/null || abort "Failed to cd to root with code $?"
${RM}-rf"tmp"
echo"Successfully built LibreSSL ${LIBRESSL_VERSION}"