[postgis-tickets] [SCM] PostGIS branch main updated. 3.1.0rc1-388-g6eeee12

git at osgeo.org git at osgeo.org
Tue Aug 10 06:27:48 PDT 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, main has been updated
       via  6eeee128815a61c6ad08635c4586d5f6f58a010d (commit)
      from  177de9ca1c1f4fa6cc57271c5810bcc26ebade84 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6eeee128815a61c6ad08635c4586d5f6f58a010d
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue Aug 10 15:27:19 2021 +0200

    Fix PROTOBUF_LDFLAGS in absence of pkg-config
    
    Closes #4964

diff --git a/configure.ac b/configure.ac
index 95f92d3..2356ab7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1025,7 +1025,7 @@ if test "$CHECK_PROTOBUF" != "no"; then
 
 	AC_ARG_WITH([protobuf-lib],
 		[AS_HELP_STRING([--with-protobuf-lib=PATH], [libprotobuf-c.so/dll/dylib library installation directory])], [
-			PROTOBUF_LDFLAGS="-L$withval -lprotobuf-c"
+			PROTOBUF_LDFLAGS="-L$withval"
 		],[])
 
 	if test -n "$PROTOBUF_CPPFLAGS"; then
@@ -1043,7 +1043,8 @@ if test "$CHECK_PROTOBUF" != "no"; then
 	)
 
 	dnl confirm that discovered/configured library path works
-	AC_CHECK_LIB([protobuf-c], [protobuf_c_message_init], [],
+	AC_CHECK_LIB([protobuf-c], [protobuf_c_message_init],
+		[PROTOBUF_LDFLAGS="-lprotobuf-c"],
 		AC_MSG_ERROR([unable to link protobuf-c using $LDFLAGS. You can disable MVT and Geobuf support using --without-protobuf])
 		HAVE_PROTOBUF=no
 	)

-----------------------------------------------------------------------

Summary of changes:
 configure.ac | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list