disable "thin" static libraries by default

Older linkers don't have the -T flag.

This is a somewhat experimental feature, so if user's want "thin"
archives, they can specify `--thin` to revert to the original behavior.
This commit is contained in:
Nathan Rajlich 2013-03-08 15:34:43 -08:00
parent 4138ba86c8
commit 078ab27480
3 changed files with 10 additions and 1 deletions

View file

@ -12,7 +12,12 @@
['_type=="loadable_module"', {
'product_extension': 'node',
'defines': [ 'BUILDING_NODE_EXTENSION' ],
}]
}],
['_type=="static_library"', {
# set to `1` to *disable* the -T thin archive 'ld' flag.
# older linkers don't support this flag.
'standalone_static_library': '<(standalone_static_library)'
}],
],
'conditions': [

View file

@ -287,6 +287,9 @@ function configure (gyp, argv, callback) {
// don't copy dev libraries with nodedir option
variables.copy_dev_lib = !gyp.opts.nodedir
// disable -T "thin" static archives by default
variables.standalone_static_library = gyp.opts.thin ? 0 : 1;
// loop through the rest of the opts and add the unknown ones as variables.
// this allows for module-specific configure flags like:
//

View file

@ -86,6 +86,7 @@ proto.configDefs = {
, python: String // 'configure'
, 'dist-url': String // 'install'
, jobs: String // 'build'
, thin: String // 'configure'
}
/**