Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/ardupilotwaf/static_linking.py
9686 views
1
# encoding: utf-8
2
3
# flake8: noqa
4
5
"""
6
WAF Tool to force programs to be statically linked
7
"""
8
9
from waflib.TaskGen import after_method, feature
10
11
@feature('static_linking')
12
@after_method('apply_link')
13
def force_static_linking(self):
14
env = self.link_task.env
15
env.STLIB += env.LIB
16
env.LIB = []
17
env.STLIB_MARKER = '-static'
18
env.SHLIB_MARKER = ''
19
20