Index: build/config/android/BUILD.gn |
diff --git a/build/config/android/BUILD.gn b/build/config/android/BUILD.gn |
index 0514b43e73b308e967227404bad6e1cccb44822f..db6b7a8bb8d3175e1560f4cf087cf1b4ec535157 100644 |
--- a/build/config/android/BUILD.gn |
+++ b/build/config/android/BUILD.gn |
@@ -115,6 +115,10 @@ config("compiler") { |
abi_target, |
] |
} |
+ |
+ # Assign any flags set for the C compiler to asmflags so that they are sent |
+ # to the assembler. |
+ asmflags = cflags |
} |
# This is included by reference in the //build/config/compiler:runtime_library |
@@ -194,6 +198,7 @@ config("runtime_library") { |
config("sdk") { |
if (sysroot != "") { |
cflags = [ "--sysroot=" + sysroot ] |
+ asmflags = [ "--sysroot=" + sysroot ] |
ldflags = [ "--sysroot=" + sysroot ] |
# Need to get some linker flags out of the sysroot. |
@@ -209,6 +214,7 @@ config("sdk") { |
config("executable_config") { |
cflags = [ "-fPIE" ] |
+ asmflags = [ "-fPIE" ] |
ldflags = [ "-pie" ] |
} |