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