mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
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:
parent
4138ba86c8
commit
078ab27480
3 changed files with 10 additions and 1 deletions
|
@ -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': [
|
||||
|
|
|
@ -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:
|
||||
//
|
||||
|
|
|
@ -86,6 +86,7 @@ proto.configDefs = {
|
|||
, python: String // 'configure'
|
||||
, 'dist-url': String // 'install'
|
||||
, jobs: String // 'build'
|
||||
, thin: String // 'configure'
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue