mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
build: use -fPIC for native addons on UNIX
No -fPIC on 32 bits Linux but do enable for the other UNIX flavors.
This commit is contained in:
committed by
Ben Noordhuis
parent
9da830e895
commit
d4ccdeaf00
@@ -15,6 +15,9 @@
|
||||
}],
|
||||
[ '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' ],
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user