mirror of https://github.com/google/oss-fuzz.git
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:
parent
6fad9b7397
commit
f9600a44e3
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue