darling icon indicating copy to clipboard operation
darling copied to clipboard

Linker gets called with unknown options (--as-needed) on Alpine Linux

Open PureTryOut opened this issue 2 years ago • 0 comments

Build Log

[  7%] Linking C shared library libexc_xtrace_mig.dylib
[  7%] Building C object src/kernel/emulation/linux/CMakeFiles/emulation_dyld.dir/common_at.c.o
ld: unknown option: --as-needed
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)

I've been playing around with other linkers (-DCMAKE_C_LINK_EXECUTABLE) but they just caused other issues.

System Information Alpine Linux edge

Software Version
Clang 13.0.1
CMake 3.22.3
Linux Kernel 5.15.27
Darling version 0.1.20220213 which is 597325bc702e7b0893ade8272000a4086b23f121

PureTryOut avatar Mar 16 '22 13:03 PureTryOut