Fix addition of define (#7738)

In PR #7687 I tried to add a define by adding it to CFLAGS, but that
didn't work without rerunning configure. By adding the define to
config.h, rerunning configure is not necessary
This commit is contained in:
Martijn van Beurden 2022-05-23 13:01:28 +02:00 committed by GitHub
parent 84d255ab00
commit a563e10d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -52,11 +52,10 @@ make -j$(nproc)
cd $SRC/flac/oss-fuzz
cp fuzzer_encoder fuzzer_encoder_v2 $OUT
# Build libflac again for decoder fuzzers, but now with addition CFLAG
export CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_NO_SANITIZE_SIGNED_INTEGER_OVERFLOW"
# Build libflac again for decoder fuzzers, but now with additional define
cd $SRC/flac/
make clean
echo "#define FUZZING_BUILD_MODE_NO_SANITIZE_SIGNED_INTEGER_OVERFLOW" >> config.h
make -j$(nproc)
# Copy decoder fuzzers