diff --git a/infra/base-images/base-builder/Dockerfile b/infra/base-images/base-builder/Dockerfile index 276300df2..2230f2c42 100644 --- a/infra/base-images/base-builder/Dockerfile +++ b/infra/base-images/base-builder/Dockerfile @@ -83,7 +83,7 @@ ENV SANITIZER_FLAGS_dataflow "-fsanitize=dataflow" ENV SANITIZER_FLAGS_thread "-fsanitize=thread" -ENV SANITIZER_FLAGS_introspector "-flegacy-pass-manager -flto -fno-inline-functions" +ENV SANITIZER_FLAGS_introspector "-flegacy-pass-manager -flto -fno-inline-functions -Wl,-fuse-ld=gold,-flto -Wno-unused-command-line-argument" # Do not use any sanitizers in the coverage build. ENV SANITIZER_FLAGS_coverage "" diff --git a/infra/base-images/base-builder/compile b/infra/base-images/base-builder/compile index b11649fdb..b6c78e8de 100755 --- a/infra/base-images/base-builder/compile +++ b/infra/base-images/base-builder/compile @@ -147,7 +147,6 @@ if [ "$FUZZING_LANGUAGE" = "jvm" ]; then fi if [ "$SANITIZER" = "introspector" ]; then - export LDFLAGS="-fuse-ld=gold -flto" export AR=llvm-ar export NM=llvm-nm export RANLIB=llvm-ranlib