[postgis-tickets] r17877 - Fix --with-jsondir ldflags

Raul raul at rmr.ninja
Mon Oct 7 03:38:47 PDT 2019


Author: algunenano
Date: 2019-10-07 03:38:47 -0700 (Mon, 07 Oct 2019)
New Revision: 17877

Modified:
   trunk/configure.ac
Log:
Fix --with-jsondir ldflags

Fixes #4528


Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2019-10-07 10:29:32 UTC (rev 17876)
+++ trunk/configure.ac	2019-10-07 10:38:47 UTC (rev 17877)
@@ -932,13 +932,13 @@
                     AC_CHECK_FILE("$JSONDIR/include/json-c/json.h",
                                 [
                                     JSON_CPPFLAGS="-I$JSONDIR/include/json-c"
-                                    AC_CHECK_LIB([json-c], [json_object_get], [HAVE_JSON_C=yes; JSON_LDFLAGS="${JSON_LDFLAGS} -ljson-c"])
+                                    AC_CHECK_LIB([json-c], [json_object_get], [HAVE_JSON_C=yes; JSON_LDFLAGS="-L$JSONDIR/lib -ljson-c"])
                                 ],
                                 [
                                     AC_CHECK_FILE("$JSONDIR/include/json/json.h",
                                     [
                                         JSON_CPPFLAGS="-I$JSONDIR/include/json"
-                                        AC_CHECK_LIB([json], [json_object_get], [HAVE_JSON=yes; JSON_LDFLAGS="${JSON_LDFLAGS} -ljson"])
+                                        AC_CHECK_LIB([json], [json_object_get], [HAVE_JSON=yes; JSON_LDFLAGS="-L$JSONDIR/lib -ljson"])
                                     ],
                                     [AC_MSG_ERROR([Could not find header: json.h])])
                                 ])



More information about the postgis-tickets mailing list