Remove -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION from CFLAGS in c-ares (#414)

This commit is contained in:
Kostya Serebryany 2017-02-22 15:09:07 -08:00 committed by Oliver Chang
parent 7ebb132bbd
commit f79945347c
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@
#
################################################################################
# Remove -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION from CFLAGS
# as a workaround for https://github.com/google/oss-fuzz/issues/413.
# It's unclear why the c-ares configure is that picky;
# a better fix would probably be in the c-ares build system.
CFLAGS=$(for f in $CFLAGS; do [ $f != "-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" ] && echo $f; done);
# Build the project.
./buildconf
./configure --enable-debug