fuzz-introspector: remove use of LDFLAGS (#7573)

* fuzz-introspector: remove use of LDFLAGS

The use of LDFLAGS does not really follow the policy of OSS-Fuzz. This
moves the linker flags into the sanitizer flags.

Ref:
https://github.com/google/oss-fuzz/issues/7540#issuecomment-1094500094
This commit is contained in:
DavidKorczynski 2022-04-15 19:13:24 +01:00 committed by GitHub
parent 6fad9b7397
commit f9600a44e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

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

View File

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