]> granicus.if.org Git - postgis/commitdiff
Use libtool to link liblwgeom unit tester (helps testing the shared library)
authorSandro Santilli <strk@keybit.net>
Mon, 29 Aug 2011 14:45:23 +0000 (14:45 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 29 Aug 2011 14:45:23 +0000 (14:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7792 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/Makefile.in

index 578cec606faa1048e51c189f2fde0bbb5933462c..b09f3c072133adeb1df85d7014daccebe08bf869 100644 (file)
@@ -13,6 +13,8 @@
 CC=@CC@
 CFLAGS=@CFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@
 LDFLAGS = @GEOS_LDFLAGS@ -lgeos_c
+top_builddir = @top_builddir@
+LIBTOOL = @LIBTOOL@
 
 CUNIT_LDFLAGS=@CUNIT_LDFLAGS@
 CUNIT_CPPFLAGS=@CUNIT_CPPFLAGS@ -I..
@@ -56,8 +58,9 @@ check: cu_tester
 endif
 
 # Build the main unit test executable
-cu_tester: ../.libs/liblwgeom.a $(OBJS)
-       $(CC) -o $@ $(OBJS) ../.libs/liblwgeom.a -lm $(CUNIT_LDFLAGS) $(LDFLAGS)
+cu_tester: ../liblwgeom.la $(OBJS)
+       $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ $(OBJS) ../liblwgeom.la $(CUNIT_LDFLAGS)
+       #$(CC) -o $@ $(OBJS) ../.libs/liblwgeom.a -lm $(CUNIT_LDFLAGS) $(LDFLAGS)
 
 # Command to build each of the .o files
 $(OBJS): %.o: %.c