]> granicus.if.org Git - postgis/commitdiff
Fix build of unit tests with libtool 2.4.2
authorSandro Santilli <strk@keybit.net>
Sat, 22 Feb 2014 20:34:17 +0000 (20:34 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 22 Feb 2014 20:34:17 +0000 (20:34 +0000)
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

liblwgeom/cunit/Makefile.in

index 076610e15d9d4804de0bedafdfc53021863cfcaf..e4aa80d960b57ac5b6990b542d38e569cb9ec47b 100644 (file)
@@ -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