From: Sandro Santilli Date: Sat, 22 Feb 2014 20:34:17 +0000 (+0000) Subject: Fix build of unit tests with libtool 2.4.2 X-Git-Tag: 2.2.0rc1~1243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2231d33c279b9e5ff07ca0651f97716b24296cb3;p=postgis Fix build of unit tests with libtool 2.4.2 The error was: undefined reference to symbol 'lround@@GLIBC_2.2.5' For some reason -lm found in liblwgeom.la is not being taken in consideration. See #2649 git-svn-id: http://svn.osgeo.org/postgis/trunk@12249 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/Makefile.in b/liblwgeom/cunit/Makefile.in index 076610e15..e4aa80d96 100644 --- a/liblwgeom/cunit/Makefile.in +++ b/liblwgeom/cunit/Makefile.in @@ -76,7 +76,7 @@ endif # Build the main unit test executable cu_tester: ../liblwgeom.la $(OBJS) - $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ $(OBJS) ../liblwgeom.la $(CUNIT_LDFLAGS) + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ $(OBJS) ../liblwgeom.la -lm $(CUNIT_LDFLAGS) #$(CC) -o $@ $(OBJS) ../.libs/liblwgeom.a -lm $(CUNIT_LDFLAGS) $(LDFLAGS) # Command to build each of the .o files