Re-enable PIE on Android+OptimizeForSize

Looks like Android executables *must* have PIE

Change-Id: Iab402041a09263627b54f302b29821ef42dbf9d6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/597157
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/gn/skia/BUILD.gn b/gn/skia/BUILD.gn
index 1811e01..f24c77f 100644
--- a/gn/skia/BUILD.gn
+++ b/gn/skia/BUILD.gn
@@ -628,12 +628,15 @@
         # We currently use bloaty 1.0 on the CI. Newer versions of Bloaty do not
         # seem to handle newer DWARF data as well.
         "-gdwarf-4",
-
-        # Clang 15 turns PIE (Position-indendendent Executable) on by default.
-        "-fno-PIE",
-        "-fno-pie",
       ]
-      ldflags += [ "-nopie" ]
+      if (!is_android) {
+        cflags += [
+          # Clang 15 turns PIE (Position-indendendent Executable) on by default.
+          "-fno-PIE",
+          "-fno-pie",
+        ]
+        ldflags += [ "-nopie" ]
+      }
     } else {
       cflags = [ "-O3" ]
     }