On Sun, Nov 26, 2017 at 11:40:23AM -0600, Nahum Castro wrote:
> /usr/bin/ld: cannot find -lpq
> Is quite strange?

Can you try the attached patch ?

--strk;
diff --git a/raster/loader/Makefile.in b/raster/loader/Makefile.in
index f7353dbe6..558ca90eb 100644
--- a/raster/loader/Makefile.in
+++ b/raster/loader/Makefile.in
@@ -28,6 +28,10 @@ SHELL = @SHELL@
 INSTALL = @INSTALL@
 LIBTOOL = @LIBTOOL@
 
+# PostgreSQL frontend CPPFLAGS and LDFLAGS (for compiling and linking with libpq)
+PGSQL_FE_CPPFLAGS=@PGSQL_FE_CPPFLAGS@
+PGSQL_FE_LDFLAGS=@PGSQL_FE_LDFLAGS@
+
 # Filenames with extension as determined by the OS
 RASTER2PGSQL=raster2pgsql@EXESUFFIX@
 
@@ -74,6 +78,7 @@ LDFLAGS = \
 	$(GEOS_LDFLAGS) \
 	$(GETTEXT_LDFLAGS) \
 	$(ICONV_LDFLAGS) \
+	$(PGSQL_FE_LDFLAGS) \
 	-lm
 
 all: $(RASTER2PGSQL)
_______________________________________________
postgis-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/postgis-users

Reply via email to