xref: /aosp_15_r20/external/ublksrv/build_with_liburing_src (revision 94c4a1e103eb1715230460aab379dff275992c20)
1#!/bin/bash
2
3# build liburing first
4#
5# cd $LIBURING_DIR
6# ./configure && make && make install
7
8PARAM=$1
9
10set -eo pipefail
11set -x
12
13script_dir="$(dirname ${BASH_SOURCE[0]})"
14
15autoreconf -i "${script_dir}"
16
17OPTS="-g -O0  -Wall"
18: "${LIBURING_DIR:=/root/git/liburing}" #replace with your own liburing path
19PKG_CONFIG_PATH=${LIBURING_DIR} \
20${script_dir}/configure \
21  --enable-gcc-warnings $PARAM \
22  CFLAGS="-I${LIBURING_DIR}/src/include $OPTS" \
23  CXXFLAGS="-I${LIBURING_DIR}/src/include $OPTS" \
24  LDFLAGS="-L${LIBURING_DIR}/src"
25
26make -j$(nproc) --no-print-directory
27