New comment by ndowens on void-packages repository https://github.com/void-linux/void-packages/issues/16200#issuecomment-551381060 Comment: Not an expert by no means, but maybe try LDFLAGS="-L(PATH_TO_YOUR_LIBRARY)" ? that way it might link to it