CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/ardupilotwaf/static_linking.py
Views: 1798
1
# encoding: utf-8
2
3
"""
4
WAF Tool to force programs to be statically linked
5
"""
6
7
from waflib.TaskGen import after_method, feature
8
9
@feature('static_linking')
10
@after_method('apply_link')
11
def force_static_linking(self):
12
env = self.link_task.env
13
env.STLIB += env.LIB
14
env.LIB = []
15
env.STLIB_MARKER = '-static'
16
env.SHLIB_MARKER = ''
17
18