Building v8 without PIC

53 views
Skip to first unread message

Noah Cantor

unread,
Jul 2, 2019, 7:17:32 PM7/2/19
to v8-users
My project builds v8 via gm.py. Is there a way to get it to build non-PIC (i.e. without -fPIC and -pie flags) without modifying all the BUILD.gn files under src?

Jakob Kummerow

unread,
Jul 3, 2019, 4:36:55 AM7/3/19
to v8-users
I'm afraid those flags are not configurable. You'll have to edit build/config/compiler/BUILD.gn (for -fPIC) and build/config/gcc/BUILD.gn and gni/v8.gni (for -pie) -- but none of the BUILD.gn files under src :-)

Note that this is entirely independent of how you build V8; gm.py has nothing to do with it.

Obviously, if this leads to strange issues, you're on your own -- hacking the build files with your custom settings is officially unsupported. Good luck!


On Wed, Jul 3, 2019 at 1:17 AM Noah Cantor <noahca...@gmail.com> wrote:
My project builds v8 via gm.py. Is there a way to get it to build non-PIC (i.e. without -fPIC and -pie flags) without modifying all the BUILD.gn files under src?

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/bc6c0edb-aa77-46e2-8d00-e2dda1be4eff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages