Index: ppapi/native_client/src/untrusted/irt_stub/irt_stub.gyp |
diff --git a/ppapi/native_client/src/untrusted/irt_stub/irt_stub.gyp b/ppapi/native_client/src/untrusted/irt_stub/irt_stub.gyp |
index c00cf980e9f8c18f7d668281272e4ca4b0caf650..e1b2d85b6ea65a5accdc353fdbb54e3348758f4a 100644 |
--- a/ppapi/native_client/src/untrusted/irt_stub/irt_stub.gyp |
+++ b/ppapi/native_client/src/untrusted/irt_stub/irt_stub.gyp |
@@ -16,6 +16,10 @@ |
'build_newlib': 1, |
'build_pnacl_newlib': 1, |
}, |
+ # Always compile libppapi_stub with -fPIC so that -lppapi can be linked |
+ # into shared libraries (libppapi.so is a linker script that pulls in |
+ # ppapi_stub). |
+ 'compile_flags': [ '-fPIC' ], |
'include_dirs': [ |
'../../../..', |
], |