mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 20:18:31 -04:00
waf: added --static option
this forces a static build
This commit is contained in:
parent
e64fc08e09
commit
55e91f0325
9
wscript
9
wscript
@ -90,6 +90,11 @@ revisions.
|
||||
default=False,
|
||||
help="Don't use libiio even if supported by board and dependencies available")
|
||||
|
||||
g.add_option('--static',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='Force a static build')
|
||||
|
||||
def _collect_autoconfig_files(cfg):
|
||||
for m in sys.modules.values():
|
||||
paths = []
|
||||
@ -122,6 +127,10 @@ def configure(cfg):
|
||||
# Allow to differentiate our build from the make build
|
||||
cfg.define('WAF_BUILD', 1)
|
||||
|
||||
if cfg.options.static:
|
||||
cfg.msg('Using static linking')
|
||||
env.STATIC_LINKING = True
|
||||
|
||||
cfg.msg('Setting board to', cfg.options.board)
|
||||
cfg.get_board().configure(cfg)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user