[infra] Build honggfuzz with -D_HF_LINUX_NO_BFD (#3886). (#4107)

* [infra] Build honggfuzz with -D_HF_LINUX_NO_BFD (#3886).

* dummy edit to trigger CI
This commit is contained in:
Max Moroz 2020-07-10 14:50:39 -07:00 committed by GitHub
parent 2201c8f46c
commit 47484451d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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