Browse Source

Make oprofile work

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
7d73779446
  1. 3
      deps/v8/SConstruct
  2. 5
      wscript

3
deps/v8/SConstruct

@ -225,7 +225,8 @@ LIBRARY_FLAGS = {
'LINKFLAGS': ['-m64'], 'LINKFLAGS': ['-m64'],
}, },
'prof:oprofile': { 'prof:oprofile': {
'CPPDEFINES': ['ENABLE_OPROFILE_AGENT'] 'CPPDEFINES': ['ENABLE_OPROFILE_AGENT'],
'LIBS': ['opagent', 'bfd']
} }
}, },
'msvc': { 'msvc': {

5
wscript

@ -187,6 +187,9 @@ def configure(conf):
conf.env["USE_OPROFILE"] = o.use_oprofile conf.env["USE_OPROFILE"] = o.use_oprofile
if o.use_oprofile:
conf.check(lib=['bfd', 'opagent'], uselib_store="OPROFILE")
conf.check(lib='dl', uselib_store='DL') conf.check(lib='dl', uselib_store='DL')
if not sys.platform.startswith("sunos") and not sys.platform.startswith("cygwin"): if not sys.platform.startswith("sunos") and not sys.platform.startswith("cygwin"):
conf.env.append_value("CCFLAGS", "-rdynamic") conf.env.append_value("CCFLAGS", "-rdynamic")
@ -573,7 +576,7 @@ def build(bld):
node = bld.new_task_gen("cxx", product_type) node = bld.new_task_gen("cxx", product_type)
node.name = "node" node.name = "node"
node.target = "node" node.target = "node"
node.uselib = 'RT EV OPENSSL CARES EXECINFO DL KVM SOCKET NSL UTIL' node.uselib = 'RT EV OPENSSL CARES EXECINFO DL KVM SOCKET NSL UTIL OPROFILE'
node.add_objects = 'eio http_parser' node.add_objects = 'eio http_parser'
if product_type_is_lib: if product_type_is_lib:
node.install_path = '${PREFIX}/lib' node.install_path = '${PREFIX}/lib'

Loading…
Cancel
Save