Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: build/toolchain.gypi

Issue 240473003: Ability to force position-independent code generation. (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"', {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698