| Index: build/toolchain.gypi
|
| diff --git a/build/toolchain.gypi b/build/toolchain.gypi
|
| index a9958ce8d66b2cc879ca08d5e30681501cc5c023..54bfdef92c9122898e8ab77e8053d9fe490d641b 100644
|
| --- a/build/toolchain.gypi
|
| +++ b/build/toolchain.gypi
|
| @@ -66,6 +66,10 @@
|
| # Some versions of GCC 4.5 seem to need -fno-strict-aliasing.
|
| 'v8_no_strict_aliasing%': 0,
|
|
|
| + # When you are statically embedding V8 into a shared library, you might
|
| + # need to force position-independent code generation.
|
| + 'v8_force_pic%': 0,
|
| +
|
| # Chrome needs this definition unconditionally. For standalone V8 builds,
|
| # it's handled in build/standalone.gypi.
|
| 'want_separate_host_toolset%': 1,
|
| @@ -423,6 +427,9 @@
|
| [ 'v8_no_strict_aliasing==1', {
|
| 'cflags': [ '-fno-strict-aliasing' ],
|
| }],
|
| + [ 'v8_force_pic==1', {
|
| + 'cflags': [ '-fPIC' ],
|
| + }],
|
| ], # conditions
|
| }],
|
| ['OS=="solaris"', {
|
|
|