[postgis-tickets] r15866 - Add -lm to liblwgeom link line

Sandro Santilli strk at kbt.io
Sun Oct 1 23:17:36 PDT 2017


Author: strk
Date: 2017-10-01 23:17:36 -0700 (Sun, 01 Oct 2017)
New Revision: 15866

Modified:
   branches/2.4/NEWS
   branches/2.4/liblwgeom/Makefile.in
Log:
Add -lm to liblwgeom link line

References #3869 for 2.4 branch

Modified: branches/2.4/NEWS
===================================================================
--- branches/2.4/NEWS	2017-10-01 18:31:56 UTC (rev 15865)
+++ branches/2.4/NEWS	2017-10-02 06:17:36 UTC (rev 15866)
@@ -3,6 +3,7 @@
 
  * Bug fixes *
   - #3864, Fix memory leaks in BTREE operators
+  - #3869, Fix build with "gold" linker
 
 PostGIS 2.4.0
 2017/09/30

Modified: branches/2.4/liblwgeom/Makefile.in
===================================================================
--- branches/2.4/liblwgeom/Makefile.in	2017-10-01 18:31:56 UTC (rev 15865)
+++ branches/2.4/liblwgeom/Makefile.in	2017-10-02 06:17:36 UTC (rev 15866)
@@ -25,7 +25,7 @@
 CC = @CC@
 CPPFLAGS = @CPPFLAGS@
 CFLAGS = @CFLAGS@ @PICFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@ @JSON_CPPFLAGS@
-LDFLAGS = @LDFLAGS@ @GEOS_LDFLAGS@ -lgeos_c @PROJ_LDFLAGS@ -lproj @JSON_LDFLAGS@
+LDFLAGS = @LDFLAGS@ @GEOS_LDFLAGS@ -lgeos_c @PROJ_LDFLAGS@ -lproj @JSON_LDFLAGS@ -lm
 NUMERICFLAGS = @NUMERICFLAGS@
 top_builddir = @top_builddir@
 prefix = @prefix@



More information about the postgis-tickets mailing list