New comment by nekopsykose on void-packages repository https://github.com/void-linux/void-packages/issues/41159#issuecomment-1356765853 Comment: > 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. i was curious how a link could succeed if you didn't have a valid link line- then realised linkers by default don't fail on missing symbols without passing `-z now`. that makes it fail instantly if the output is invalid and can't resolve symbols, i guess not everyone has it in the LDFLAGS as `-Wl,-z,now` all the time.. > 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 gets me every time too :)