configure --with-protobuf-lib / --with-protobufdir broken
|Reported by:||tbussmann||Owned by:||strk|
Currently it is not possible to compile PostGIS with protobuf-c by specifying the path to the library using
--with-protobufdir=, only if the installation can be found by
pkg-config it can be overridden by
PROTOBUFC_LIBS. Effectively, the
-lprotobuf-c is missing in LDFLAGS.
The first option broke by commit [6eeee128815/git] as an attempt to fix #4964. Part of this change broke building with
pkg-config as its output was now overwritten and thus the
-L went missing which resulted in #4977. That again was fixed by an attempt to roll back the first change by [86a8a5979/git]. Unfortunately that finally broke
--with-protobufdir and resulted in the current situation.
[if test "x$PROTOBUF_LDFLAGS" = "x"; then PROTOBUF_LDFLAGS="-lprotobuf-c" fi],