[PATCH rtems-lwip v2 2/6] lwip.py: Add libm accessibility

Kinsey Moore kinsey.moore at oarcorp.com
Wed Aug 24 15:47:27 UTC 2022


This allows linking with libm. Previously, waf was unware that libm
existed and would omit it during the linking step.
---
 lwip.py | 1 +
 1 file changed, 1 insertion(+)

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)
-- 
2.30.2



More information about the devel mailing list