Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 387 by anders.kaseorg: -lz in protobuf.pc belongs in Libs.private, not Libs
http://code.google.com/p/protobuf/issues/detail?id=387

Currently everything using ‘pkg-config --libs protobuf’ gets needlessly linked with -lz. That should only be necessary when linking statically (‘pkg-config --static --libs protobuf’). This patch fixes that.

--- a/protobuf.pc.in
+++ b/protobuf.pc.in
@@ -6,7 +6,8 @@ includedir=@includedir@
 Name: Protocol Buffers
 Description: Google's Data Interchange Format
 Version: @VERSION@
-Libs: -L${libdir} -lprotobuf @LIBS@ @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
+Libs: -L${libdir} -lprotobuf @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
+Libs.private: @LIBS@
 Cflags: -I${includedir} @PTHREAD_CFLAGS@
 # Commented out because it crashes pkg-config *sigh*:
 #   http://bugs.freedesktop.org/show_bug.cgi?id=13265


--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to