Commit 39c7470
Fix llvmlibc sample, by adding -lm to the link command. (#69)
The sample program calls two libm functions (lround and atanf) to turn a
floating-point number into decimal digits. But libm.a is built as a
separate library from libc.a, so linking the sample program fails
because the compile command doesn't use the -lm option. Easily fixed.1 parent ab65405 commit 39c7470
File tree
1 file changed
+1
-1
lines changed- arm-software/embedded/llvmlibc-samples/src/llvmlibc/baremetal-semihosting
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments