Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

build: use -fPIC for native addons on UNIX

No -fPIC on 32 bits Linux but do enable for the other UNIX flavors.
  • Loading branch information
TooTallNate authored and bnoordhuis committed Feb 9, 2012
1 parent 9da830e commit d4ccdeaf00d7994b4a959a3ddfe8c52a2bd3c30d
Showing with 3 additions and 0 deletions.
  1. +3 −0 tools/addon.gypi
@@ -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' ],
}]
]
}

0 comments on commit d4ccdea

Please sign in to comment.
You can’t perform that action at this time.