Bug 52038

Summary: failure linking PA statically
Product: PulseAudio Reporter: Peter Meerwald <pmeerw>
Component: build-systemAssignee: pulseaudio-bugs
Status: RESOLVED FIXED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Peter Meerwald 2012-07-13 07:27:33 UTC
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
Comment 1 Peter Meerwald 2012-07-13 07:32:51 UTC
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.