Commit a2433e0
cmake: removing manual linking of libgcc.a
This commit removes the manual lookup and linking of libgcc.a.
Linking of C and runtime libraries are the responsibility of the higher
level build system which handles the toolchain and building of the
executable.
Current sidewalk implementation is broken in the sense that it fails to
consider the CPU architecture and just looks up any libgcc.a file.
For example the code might discover `arm-zephyr-eabi/12.2.0/libgcc.a`
when instead `arm-zephyr-eabi/12.2.0/thumb/v8-m.main+fp/hard/libgcc.a`
should be used, and thus causiong link errors such as:
> error: /.../12.2.0/libgcc.a(_arm_muldf3.o):
> conflicting CPU architectures 17/2
and:
> error: zephyr/zephyr_pre0.elf uses VFP register arguments,
> /.../12.2.0/libgcc.a(_fixunsdfdi.o) does not
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>1 parent 5131d3d commit a2433e0
2 files changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 9 | + | |
15 | 10 | | |
16 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
15 | 11 | | |
16 | 12 | | |
0 commit comments