[pulseaudio-discuss] [PATCH] build: Fix static linking
Peter Meerwald
pmeerw at pmeerw.net
Fri Jul 13 00:32:04 PDT 2012
From: Peter Meerwald <p.meerwald at bct-electronic.com>
fixes bug #52038:
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'
Signed-off-by: Peter Meerwald <p.meerwald at bct-electronic.com>
---
libpulse-mainloop-glib.pc.in | 2 +-
libpulse-simple.pc.in | 2 +-
libpulse.pc.in | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libpulse-mainloop-glib.pc.in b/libpulse-mainloop-glib.pc.in
index 72631c9..23d8421 100644
--- a/libpulse-mainloop-glib.pc.in
+++ b/libpulse-mainloop-glib.pc.in
@@ -7,6 +7,6 @@ Name: libpulse-mainloop-glib
Description: PulseAudio GLib 2.0 Main Loop Wrapper
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lpulse-mainloop-glib @PTHREAD_LIBS@
-Libs.private: -lpulsecommon- at PA_MAJORMINOR@
+Libs.private: -L${libdir}/pulseaudio -lpulsecommon- at PA_MAJORMINOR@
Cflags: -I${includedir} -D_REENTRANT
Requires: libpulse glib-2.0
diff --git a/libpulse-simple.pc.in b/libpulse-simple.pc.in
index ce96976..dc855fd 100644
--- a/libpulse-simple.pc.in
+++ b/libpulse-simple.pc.in
@@ -7,6 +7,6 @@ Name: libpulse-simple
Description: PulseAudio Simplified Synchronous Client Interface
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lpulse-simple @PTHREAD_LIBS@
-Libs.private: -lpulsecommon- at PA_MAJORMINOR@
+Libs.private: -L${libdir}/pulseaudio -lpulsecommon- at PA_MAJORMINOR@
Cflags: -I${includedir} -D_REENTRANT
Requires: libpulse
diff --git a/libpulse.pc.in b/libpulse.pc.in
index b437255..23d888b 100644
--- a/libpulse.pc.in
+++ b/libpulse.pc.in
@@ -8,5 +8,5 @@ Name: libpulse
Description: PulseAudio Client Interface
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lpulse @PTHREAD_LIBS@
-Libs.private: -lpulsecommon- at PA_MAJORMINOR@
+Libs.private: -L${libdir}/pulseaudio -lpulsecommon- at PA_MAJORMINOR@
Cflags: -I${includedir} -D_REENTRANT
--
1.7.5.4
More information about the pulseaudio-discuss
mailing list