cras: Support -DHAVE_FUZZER (#8088)

To fix https://crbug.com/oss-fuzz/49371,
passing HAVE_FUZZER flag during library build stage.

And by pass DBus usage in https://crrev.com/c/3787999.

BUG=oss-fuzz:49371

Co-authored-by: paulhsia <paulhsia@google.com>
This commit is contained in:
b92paul 2022-07-27 21:29:57 +08:00 committed by GitHub
parent c751c97df5
commit d876e1aead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
cd ${SRC}/adhd/cras
./git_prepare.sh
mkdir -p ${WORK}/build && cd ${WORK}/build
${SRC}/adhd/cras/configure --disable-featured
CFLAGS="${CFLAGS} -DHAVE_FUZZER" ${SRC}/adhd/cras/configure --disable-featured
make -j$(nproc)
cp ${WORK}/build/src/server/rust/target/release/libcras_rust.a /usr/local/lib