I was trying to build SOLVCON with the application feature of devenv[1]. The build looks good in Ubuntu, but failed to find the pre-built bz2 lib which was also built by devenv. For example, see this CI result https://github.com/tai271828/solvcon/runs/4092547398?check_suite_focus=true
I don't have a macOS, but I believe this issue could be reproduced by devenv launch solvcon, or devenv build bzip2 and then check the library names under the devenv flavor folder.
[1] mainly for testing this landed pull request as well #91