Snap for 6664824 from cdf88ab3830e5a530c0114047a19119d8304e58e to mainline-release
Change-Id: I7a97652b4d1463c6f9c9efa62b1044ceecf6f038
diff --git a/Android.bp b/Android.bp
index c831677..6ff1bf8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -67,6 +67,12 @@
host: {
host_ldlibs: ["-lpthread"],
},
+ android: {
+ // On FIPS builds (i.e. Android only) prevent other libraries
+ // from pre-empting symbols in libcrypto which could affect FIPS
+ // compliance and cause integrity checks to fail. See b/160231064.
+ ldflags: ["-Wl,-Bsymbolic"],
+ },
},
local_include_dirs: ["src/crypto"],