summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2022-08-24 08:19:14 -0500
committerJoel Sherrill <joel@rtems.org>2022-08-25 13:37:09 -0500
commitdb0477727939fab60c7f282e2a9697fe66472f1f (patch)
tree7d554c8272ffd87e9764c5272922dd05bc3df694
parentlwip.py: Add compile flags (diff)
downloadrtems-lwip-db0477727939fab60c7f282e2a9697fe66472f1f.tar.bz2
lwip.py: Add libm accessibility
This allows linking with libm. Previously, waf was unware that libm existed and would omit it during the linking step.
-rw-r--r--lwip.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lwip.py b/lwip.py
index d235e95..b97d273 100644
--- a/lwip.py
+++ b/lwip.py
@@ -180,6 +180,7 @@ def add_flags(flags, new_flags):
flags.append(flag)
def bsp_configure(conf, arch_bsp):
+ conf.env.LIB += ['m']
section_flags = ["-fdata-sections", "-ffunction-sections"]
add_flags(conf.env.CFLAGS, section_flags)
add_flags(conf.env.CXXFLAGS, section_flags)