musl-1.2.2 compilation with clang-11 failed to build libc.so at the final linking stage:
ld.lld: error: undefined hidden symbol: __dls2
>>> referenced by ld-temp.o
>>> lto.tmp:(_dlstart_c)
>>> did you mean: __dls3
>>> defined in: lto.tmp
I am using CFLAGS=‘-march=native -mtune=native -Oz -flto -fmerge-all-constants -fomit-frame-pointer’ and LDFLAGS=‘-flto -fuse-ld=lld -Wl,—plugin-opt=O3,-O3,—icf=safe’.
No configure option is supplied.