Skip to content

Commit

Permalink
gyp: fix ninja build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jan 16, 2014
1 parent abe0255 commit 61c0d57
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion common.gypi
Expand Up @@ -19,7 +19,14 @@
'conditions': [
['OS != "win"', {
'v8_postmortem_support': 'true'
}]
}],
['GENERATOR == "ninja"', {
'OBJ_DIR': '<(PRODUCT_DIR)/obj',
'V8_BASE': '<(PRODUCT_DIR)/libv8_base.a',
}, {
'OBJ_DIR': '<(PRODUCT_DIR)/obj.target',
'V8_BASE': '<(OBJ_DIR)/deps/v8/tools/gyp/libv8_base.a',
}],
],
},

Expand Down
10 changes: 5 additions & 5 deletions node.gyp
Expand Up @@ -293,7 +293,7 @@
[
'OS=="linux" and node_shared_v8=="false"', {
'ldflags': [
'-Wl,--whole-archive <(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.a -Wl,--no-whole-archive',
'-Wl,--whole-archive <(V8_BASE) -Wl,--no-whole-archive',
],
}],
],
Expand Down Expand Up @@ -427,10 +427,10 @@
'action_name': 'node_dtrace_provider_o',
'inputs': [
'src/node_provider.d',
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace.o'
'<(OBJ_DIR)/node/src/node_dtrace.o'
],
'outputs': [
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_provider.o'
'<(OBJ_DIR)/node/src/node_dtrace_provider.o'
],
'action': [ 'dtrace', '-G', '-xnolibs', '-s', '<@(_inputs)',
'-o', '<@(_outputs)' ]
Expand All @@ -448,7 +448,7 @@
{
'action_name': 'node_dtrace_ustack_constants',
'inputs': [
'<(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.a'
'<(V8_BASE)'
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
Expand All @@ -466,7 +466,7 @@
'<(SHARED_INTERMEDIATE_DIR)/v8constants.h'
],
'outputs': [
'<(PRODUCT_DIR)/obj.target/node/src/node_dtrace_ustack.o'
'<(OBJ_DIR)/node/src/node_dtrace_ustack.o'
],
'conditions': [
[ 'target_arch=="ia32"', {
Expand Down

0 comments on commit 61c0d57

Please sign in to comment.