New comment by oreo639 on void-packages repository https://github.com/void-linux/void-packages/issues/41159#issuecomment-1356759155 Comment: > it's the default on most(?) architectures for -O1 and higher. the manpage just says O1, but someone told me not everywhere- i'd have to look at the code to say for sure, but generally it's there anyway. Ah, thanks. > that would be caused by a missing libelf.so not being found, as those are libelf symbols, no? there would be a failed to find message somewhere else in the output. Yeah, I initially ran into the issue when I was debugging why ldc was segfaulting on musl but only when compiled with DMD, and I was too lazy to test it again, sorry. The issue was just that -lelf wasn't getting added to the linker flags since I didn't have pkg-config in the hostmakedepends.