Index: ppapi/native_client/src/untrusted/irt_stub/BUILD.gn |
diff --git a/ppapi/native_client/src/untrusted/irt_stub/BUILD.gn b/ppapi/native_client/src/untrusted/irt_stub/BUILD.gn |
index 484145f49e7cc9477c3c0d7065725f166a998994..9b4febb6acd9bfa9029c7bf37fc3096bb3ac1081 100644 |
--- a/ppapi/native_client/src/untrusted/irt_stub/BUILD.gn |
+++ b/ppapi/native_client/src/untrusted/irt_stub/BUILD.gn |
@@ -5,8 +5,6 @@ |
assert(is_nacl, |
"These targets must only be built using the untrusted NaCl toolchains.") |
-# TODO(sbc): Make sure this library gets built with -fPIC. Right now it |
-# doesn't seem that is built at all. |
source_set("ppapi_stub_lib") { |
sources = [ |
"plugin_main_irt.c", |
@@ -14,4 +12,8 @@ source_set("ppapi_stub_lib") { |
"ppapi_plugin_start.c", |
"thread_creator.c", |
] |
+ cflags = [ "-fPIC" ] |
+ deps = [ |
+ "//build/config/nacl:nacl_base", |
+ ] |
} |