[gnutls] unconditionally disable assembler in gmp (#833)

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
This commit is contained in:
Nikos Mavrogiannopoulos 2018-02-09 19:18:29 +01:00 committed by Kostya Serebryany
parent 5c88efdd28
commit fd2e2a2104
1 changed files with 5 additions and 4 deletions

View File

@ -35,10 +35,11 @@ ASAN_OPTIONS=detect_leaks=0 \
make -j$(nproc)
make install
GMP_CONFIGURE_FLAGS=""
if [[ $CFLAGS = *sanitize=memory* ]]; then
# always disable assembly in GMP to avoid issues due to SIGILL
# https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3119
# https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3159
GMP_CONFIGURE_FLAGS="--disable-assembly --disable-fat"
fi
cd $SRC/gmp
bash .bootstrap
ASAN_OPTIONS=detect_leaks=0 \