mozilla / cubeb

Cross platform audio library
ISC License
439 stars 124 forks source link

Fix build with "LAZY_LOAD_LIBS=OFF". #720

Closed ivan-matveev closed 2 years ago

ivan-matveev commented 2 years ago

Add #ifndef around dlclose() to allow build with "LAZY_LOAD_LIBS=OFF" cmake argument.

ivan-matveev commented 2 years ago

Hello dear cubeb developers. Thank you for making pulseaudio usable by humans. I am using cubeb to program for a phone running Sailfish OS. The OS has some problem at dlopen("libpulse.so"). Cmake finds libpulse.so fine. A possible solution is to build cubeb with LAZY_LOAD_LIBS=OFF cmake argument. The solution depends on this pull request. Is it possible to merge the pull request to master branch?

padenot commented 2 years ago

Yes that sounds like the right thing to do, thanks.