Fix ecc-diff-fuzzer build with right botan config (#5229)

* Fix ecc-diff-fuzzer build with right botan config

Taken from oss-fuzz botan configure line

* another try

* Fixes botan build

* compile ecc-diff-fuzzer like fixing botan
This commit is contained in:
Catena cyber 2021-02-23 22:32:24 +01:00 committed by GitHub
parent e14bf4735a
commit 946298425d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -22,7 +22,7 @@ ln -s $SRC/fuzzer_corpus .
./configure.py --cc-bin=$CXX --cc-abi-flags="$CXXFLAGS" \
--disable-shared --disable-modules=locking_allocator \
--unsafe-fuzzer-mode --build-fuzzers=libfuzzer \
--with-fuzzer-lib='FuzzingEngine'
--without-os-features=getrandom,getentropy --with-fuzzer-lib='FuzzingEngine'
make -j$(nproc) libs
make -j$(nproc) fuzzers

View File

@ -93,13 +93,14 @@ cd libecc
#botan
(
cd botan
#help it find libstdc++
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++.so
export LDFLAGS=$CXXFLAGS
if [ "$ARCHITECTURE" = 'i386' ]; then
./configure.py --disable-shared-library --cpu x86_32
./configure.py --cc-bin=$CXX --cc-abi-flags="$CXXFLAGS" \
--disable-shared --disable-modules=locking_allocator --disable-shared-library \
--without-os-features=getrandom,getentropy --cpu x86_32
else
./configure.py --disable-shared-library
./configure.py --cc-bin=$CXX --cc-abi-flags="$CXXFLAGS" \
--disable-shared --disable-modules=locking_allocator --disable-shared-library \
--without-os-features=getrandom,getentropy
fi
make -j$(nproc)
make install