New comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/pull/18045#issuecomment-573311584 Comment: Since adding the pkg-config file makes more sense, correcting my hint is redundant. The problem was/is that `common/build-style/gnu-makefile` does not pass `LIBS="$LIBS"` in `do_build()`. It should probably do that for similar cases for when `make_use_env` is defined. You could also have tried to set `make_build_args="LIBS=-lexecinfo`` in the template. Adding the library like `LDFLAGS="-lexecinfo"` should also have worked while IMO this is not good style because `LIBS` is meant to be used for adding libraries, not `LDFLAGS`.