Fix AFL build.
Change-Id: Ib4578491d455eb229eaf05c5f204576b9b547cc1
diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn
index 1e51ecd..9f7640a 100644
--- a/gn/standalone/BUILD.gn
+++ b/gn/standalone/BUILD.gn
@@ -373,7 +373,9 @@
# Android will refuse to run executables if they aren't position independent.
# Instead on Linux there isn't any need and they break ASan (goo.gl/paFR6K).
- if ((is_android || is_linux) && !is_wasm) {
+ # The OSS-Fuzz provided AFL library is not PIC, so we we cannot use -fPIE
+ # for the fuzzer executables.
+ if ((is_android || is_linux) && !is_wasm && !is_fuzzer) {
asmflags = [ "-fPIE" ]
cflags = [ "-fPIE" ]
ldflags += [ "-pie" ]