use conlyflags in Android.bp when appropriate

pull/69/head
Daniel Micay 2018-12-06 12:04:42 -05:00
parent 830a7d338d
commit 8a863ae847
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
common_cflags = [ common_cflags = [
"-std=c11",
"-O3", "-O3",
//"-flto", //"-flto",
"-fPIC", "-fPIC",
@ -11,7 +10,6 @@ common_cflags = [
"-Wcast-align", "-Wcast-align",
"-Wcast-qual", "-Wcast-qual",
"-Wwrite-strings", "-Wwrite-strings",
"-Wmissing-prototypes",
"-DH_MALLOC_PREFIX", "-DH_MALLOC_PREFIX",
"-DZERO_ON_FREE=true", "-DZERO_ON_FREE=true",
"-DWRITE_AFTER_FREE_CHECK=true", "-DWRITE_AFTER_FREE_CHECK=true",
@ -32,6 +30,7 @@ cc_defaults {
name: "hardened_malloc_defaults", name: "hardened_malloc_defaults",
defaults: ["linux_bionic_supported"], defaults: ["linux_bionic_supported"],
cflags: common_cflags, cflags: common_cflags,
conlyflags: ["-std=c11", "-Wmissing-prototypes"],
stl: "none", stl: "none",
} }