dump config.log when configure fails (#6981)

* dump config.log when configure fails

Motivated by https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41899
which I'm unable to debug locally, but would have also saved time for
previous failures at configure time, e.g.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41424

* send config.log to stderr too

Co-authored-by: Damien Miller <djm@google.com>
This commit is contained in:
Damien Miller 2021-12-09 02:27:48 +11:00 committed by GitHub
parent 49cdfd9880
commit 65637510f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -24,11 +24,16 @@ sed -i 's|\(usleep.*\)|// \1|' ssh-agent.c
# Build project
autoreconf
env
env CFLAGS="" ./configure \
--without-zlib-version-check \
--with-cflags="-DWITH_XMSS=1" \
--with-cflags-after="$CFLAGS" \
--with-ldflags-after="-g $CFLAGS"
if ! env CFLAGS="" ./configure \
--without-zlib-version-check \
--with-cflags="-DWITH_XMSS=1" \
--with-cflags-after="$CFLAGS" \
--with-ldflags-after="-g $CFLAGS" ; then
echo "------ config.log:" 1>&2
cat config.log 1>&2
echo "ERROR: configure failed" 1>&2
exit 1
fi
make -j$(nproc) all
# Build fuzzers