[infra] Fix missing linking dependencies for coverage build (#1858). (#1863)

This commit is contained in:
Max Moroz 2018-10-09 11:04:03 -07:00 committed by GitHub
parent 3c1aba15b5
commit 5c263869ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ ENV COVERAGE_FLAGS="-fsanitize=fuzzer-no-link"
# Use '-Wno-unused-command-line-argument' to suppress "warning: -ldl: 'linker' input unused"
# messages which are treated as errors by some projects.
ENV COVERAGE_FLAGS_coverage "-fprofile-instr-generate -fcoverage-mapping -pthread -Wl,-ldl -Wno-unused-command-line-argument"
ENV COVERAGE_FLAGS_coverage "-fprofile-instr-generate -fcoverage-mapping -Wl,--no-as-needed -Wl,-lpthread -Wl,-ldl -Wl,-lm -Wno-unused-command-line-argument"
# Default sanitizer and fuzzing engine to use.
ENV SANITIZER="address"