mirror of
https://github.com/nodejs/node.git
synced 2024-11-22 07:37:56 +01:00
d4ccdeaf00
No -fPIC on 32 bits Linux but do enable for the other UNIX flavors.
25 lines
583 B
Python
25 lines
583 B
Python
{
|
|
'target_defaults': {
|
|
'type': 'loadable_module',
|
|
'product_extension': 'node',
|
|
'product_prefix': '',
|
|
'include_dirs': [
|
|
'../src',
|
|
'../deps/uv/include',
|
|
'../deps/v8/include'
|
|
],
|
|
|
|
'conditions': [
|
|
[ 'OS=="mac"', {
|
|
'libraries': [ '-undefined dynamic_lookup' ],
|
|
}],
|
|
[ 'OS=="win"', {
|
|
'libraries': [ '-l<(node_root_dir)/$(Configuration)/node.lib' ],
|
|
}],
|
|
[ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
|
|
'cflags': [ '-fPIC' ],
|
|
}]
|
|
]
|
|
}
|
|
}
|