From 317e3e85791413869ca9a17218a1e174bb0faf41 Mon Sep 17 00:00:00 2001 From: Francescodario Cuzzocrea Date: Wed, 4 May 2022 17:28:02 +0200 Subject: [PATCH] tools: c_tests: use stlib flag instead of shlib in check_endianness shlib is no-op in some baremetal newlib based toolchains (for example in riscv one), and causes the check to fail as the --dynamic flag is not recognized --- waflib/Tools/c_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Tools/c_tests.py b/waflib/Tools/c_tests.py index bdd186c6..f1424c8f 100644 --- a/waflib/Tools/c_tests.py +++ b/waflib/Tools/c_tests.py @@ -230,7 +230,7 @@ def check_endianness(self): def check_msg(self): return tmp[0] - self.check(fragment=ENDIAN_FRAGMENT, features='c cshlib grep_for_endianness', + self.check(fragment=ENDIAN_FRAGMENT, features='c cstlib grep_for_endianness', msg='Checking for endianness', define='ENDIANNESS', tmp=tmp, okmsg=check_msg, confcache=None) return tmp[0]