[PATCH] libtests/dl06: Add -lm
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Nov 2 16:39:23 UTC 2020
There is probably something wrong with this test program. If it is compiled
without function/data sections, no optimization, and no linker garbage
collection, then there is an undefined reference to atan2() and tan(). Fix
this issue by adding -lm.
---
spec/build/testsuites/libtests/dl06.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/spec/build/testsuites/libtests/dl06.yml b/spec/build/testsuites/libtests/dl06.yml
index 2f5d4ab08d..e1bbd006c9 100644
--- a/spec/build/testsuites/libtests/dl06.yml
+++ b/spec/build/testsuites/libtests/dl06.yml
@@ -42,7 +42,8 @@ ldflags: []
links: []
prepare-build: null
prepare-configure: null
-stlib: []
+stlib:
+- m
type: build
use-after: []
use-before: []
--
2.26.2
More information about the devel
mailing list