blob: 70a32477743ab7a01cf66119db258e5e8f0b1570 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
CMakeList.txt issue with `--as-need` and `--no-as-need`
Not sure if this is an issue but in my case I was trying to compile and I got this error while linking:
```
bin/ld.gold: --no-as-need: unknown option
bin/ld.gold: --as-need: unknown option
```
If I change line 538 from CMakeLists.txt to
`set_target_properties(${BOX64} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed -lc -lm -ldl -lrt -lpthread -lresolv -Wl,--as-needed -pthread")`
It finishing linking. But I am not sure if this is a typo or something on my end.
|