box64 icon indicating copy to clipboard operation
box64 copied to clipboard

CMakeList.txt issue with `--as-need` and `--no-as-need`

Open shantigilbert opened this issue 3 years ago • 1 comments

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.

shantigilbert avatar Mar 24 '22 01:03 shantigilbert

Yes, it's an issue. I have fixed that one on box86 but seems like I forgot to fix it in box64. I'll do that soon.

ptitSeb avatar Mar 24 '22 06:03 ptitSeb