From: Sandro Santilli Date: Mon, 29 Aug 2011 14:45:23 +0000 (+0000) Subject: Use libtool to link liblwgeom unit tester (helps testing the shared library) X-Git-Tag: 2.0.0alpha1~1060 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca4ebbe2e4167e3e95aeb3e56f5defba46f753c7;p=postgis Use libtool to link liblwgeom unit tester (helps testing the shared library) git-svn-id: http://svn.osgeo.org/postgis/trunk@7792 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/Makefile.in b/liblwgeom/cunit/Makefile.in index 578cec606..b09f3c072 100644 --- a/liblwgeom/cunit/Makefile.in +++ b/liblwgeom/cunit/Makefile.in @@ -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