Browse Source

protobuf.pc.in does not reflect CXXFLAGS

Currently, downstream libraries such as RProtoBuf fail because
`-std=c++11` is required via `configure.ac`, but RProtobuf has no way
of knowing this by consulting `pkg-config --cflags protobuf`.
dickmao 6 năm trước cách đây
mục cha
commit
a7180caf19
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      protobuf.pc.in

+ 1 - 1
protobuf.pc.in

@@ -8,5 +8,5 @@ Description: Google's Data Interchange Format
 Version: @VERSION@
 Libs: -L${libdir} -lprotobuf @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
 Libs.private: @LIBS@
-Cflags: -I${includedir} @PTHREAD_CFLAGS@
+Cflags: -I${includedir} @PTHREAD_CFLAGS@ @CXXFLAGS@
 Conflicts: protobuf-lite