Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: use -fPIC for native addons on UNIX
Browse files Browse the repository at this point in the history
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 d4ccdea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/addon.gypi
Expand Up @@ -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' ],
}]
]
}
Expand Down

0 comments on commit d4ccdea

Please sign in to comment.