gcc -static x.c `PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config --static --libs libpulse-simple` /usr/bin/ld: error: cannot find -lpulsecommon-2.98 pulse/simple.c:373: error: undefined reference to 'pa_log_level_meta' pulse/simple.c:374: error: undefined reference to 'pa_log_level_meta' pulse/simple.c:134: error: undefined reference to 'pa_log_level_meta' reason is that libpulse-simple.pc should include a library search path in Libs.private: -Libs.private: -lpulsecommon-2.98 +Libs.private: -L${libdir}/pulseaudio -lpulsecommon-2.98
fix posted
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.