Revision: 3940
Author: [email protected]
Date: Wed Feb 24 10:50:56 2010
Log: Land change to allow building on Gentoo Hardened Linux.
Codereview URL: http://codereview.chromium.org/659002
http://code.google.com/p/v8/source/detail?r=3940
Modified:
/branches/bleeding_edge/AUTHORS
/branches/bleeding_edge/src/SConscript
=======================================
--- /branches/bleeding_edge/AUTHORS Wed Feb 10 09:50:16 2010
+++ /branches/bleeding_edge/AUTHORS Wed Feb 24 10:50:56 2010
@@ -24,3 +24,4 @@
Patrick Gansterer <[email protected]>
Subrato K De <[email protected]>
Dineel D Sule <[email protected]>
+Pawel Hajdan jr <[email protected]>
=======================================
--- /branches/bleeding_edge/src/SConscript Fri Feb 19 01:17:37 2010
+++ /branches/bleeding_edge/src/SConscript Wed Feb 24 10:50:56 2010
@@ -298,6 +298,13 @@
mksnapshot_env.Replace(**context.flags['mksnapshot'])
mksnapshot_src = 'mksnapshot.cc'
mksnapshot = mksnapshot_env.Program('mksnapshot', [mksnapshot_src,
libraries_obj, non_snapshot_files, empty_snapshot_obj],
PDB='mksnapshot.exe.pdb')
+
+ # Fix build on Linux systems with PaX enabled, see
+ # http://code.google.com/p/v8/issues/detail?id=607. The dash ("-") at the
+ # beginning of the command makes scons ignore the return code, since
+ # /sbin/paxctl may not be present at all systems (especially non-Linux).
+ mksnapshot_env.AddPostAction(mksnapshot, '-/sbin/paxctl -m ${TARGET}')
+
if context.use_snapshot:
if context.build_snapshot:
snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot,
LOGFILE=File('snapshot.log').abspath)
@@ -306,6 +313,7 @@
snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
else:
snapshot_obj = empty_snapshot_obj
+
library_objs = [non_snapshot_files, libraries_obj, snapshot_obj]
return (library_objs, d8_objs, [mksnapshot])
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev