From 66f8069ff18631f04c5035a9757c80eef9da27c8 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Mon, 22 Oct 2018 07:24:42 -0700 Subject: [PATCH] [infra] Use -pthread instead of -Wl,-lpthread (fixes #1886). --- infra/base-images/base-builder/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-builder/Dockerfile b/infra/base-images/base-builder/Dockerfile index a99543d96..292507212 100644 --- a/infra/base-images/base-builder/Dockerfile +++ b/infra/base-images/base-builder/Dockerfile @@ -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 -Wl,--no-as-needed -Wl,-lpthread -Wl,-ldl -Wl,-lm -Wno-unused-command-line-argument" +ENV COVERAGE_FLAGS_coverage "-fprofile-instr-generate -fcoverage-mapping -pthread -Wl,--no-as-needed -Wl,-ldl -Wl,-lm -Wno-unused-command-line-argument" # Default sanitizer and fuzzing engine to use. ENV SANITIZER="address"