mirror of https://github.com/google/oss-fuzz.git
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:
parent
49cdfd9880
commit
65637510f4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue