mirror of https://github.com/google/oss-fuzz.git
* [infra] Build honggfuzz with -D_HF_LINUX_NO_BFD (#3886). * dummy edit to trigger CI
This commit is contained in:
parent
2201c8f46c
commit
47484451d5
|
@ -31,8 +31,9 @@ apt-get install -y ${PACKAGES[@]}
|
|||
pushd $SRC/honggfuzz > /dev/null
|
||||
make clean
|
||||
# These CFLAGs match honggfuzz's default, with the exception of -mtune to
|
||||
# improve portability.
|
||||
CC=clang CFLAGS="-O3 -funroll-loops" make
|
||||
# improve portability and `-D_HF_LINUX_NO_BFD` to remove assembly instructions
|
||||
# from the filenames.
|
||||
CC=clang CFLAGS="-O3 -funroll-loops -D_HF_LINUX_NO_BFD" make
|
||||
|
||||
# libhfuzz.a will be added by CC/CXX linker directly during linking,
|
||||
# but it's defined here to satisfy the build infrastructure
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
export LDSHARED=$CXX
|
||||
export LDFLAGS="$CFLAGS -stdlib=libc++"
|
||||
./configure
|
||||
|
||||
sed -i "/^LDSHARED=.*/s#=.*#=$CXX#" Makefile
|
||||
sed -i 's/$(CC) $(LDFLAGS)/$(CXX) $(LDFLAGS)/g' Makefile
|
||||
|
||||
|
|
Loading…
Reference in New Issue