Reviewers: danno,
Message:
Resubmitting against svn URL.
Description:
Ability to force position-independent code generation.
My motivation and discussion of this change is starting from this comment:
https://groups.google.com/d/msg/v8-users/1vva9qjvstE/JV12NDOvumAJ
Please review this at https://codereview.chromium.org/247453002/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files (+7, -0 lines):
M build/toolchain.gypi
Index: build/toolchain.gypi
===================================================================
--- build/toolchain.gypi (revision 20889)
+++ build/toolchain.gypi (working copy)
@@ -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"', {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.