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, the issue was just that -lelf wasn't getting added to the linker flags since I didn't have pkg-config in the hostmakedepends. Also, I did get the infinite loop when testing GWP-ASan. The reason nothing happened before was because I accidentally saved my test to the wrong file last time :facepalm: