]> granicus.if.org Git - postgis/commitdiff
Libtoolize build of loader unit tester, fixing build for me
authorSandro Santilli <strk@keybit.net>
Tue, 17 Mar 2015 09:03:20 +0000 (09:03 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 17 Mar 2015 09:03:20 +0000 (09:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13344 b70326c6-7e19-0410-871a-916f4a2858ee

loader/cunit/Makefile.in

index bc7b71608248da18417023efffc470fcff2d21e2..a4403f5c6992a3cb46b7199295db03d691afea26 100644 (file)
 # *
 # **********************************************************************
 
+top_builddir = @top_builddir@
 CC=@CC@
 CFLAGS=@CFLAGS@ @WARNFLAGS@
+SHELL = @SHELL@
+LIBTOOL = @LIBTOOL@
 
 CUNIT_LDFLAGS=@CUNIT_LDFLAGS@
 CUNIT_CPPFLAGS=@CUNIT_CPPFLAGS@ -I..
@@ -26,7 +29,7 @@ PGSQL_FE_CPPFLAGS=@PGSQL_FE_CPPFLAGS@
 PGSQL_FE_LDFLAGS=@PGSQL_FE_LDFLAGS@
 
 # liblwgeom
-LIBLWGEOM=../../liblwgeom/.libs/liblwgeom.a
+LIBLWGEOM=../../liblwgeom/.libs/liblwgeom.la
 
 # iconv flags
 ICONV_LDFLAGS=@ICONV_LDFLAGS@
@@ -77,6 +80,7 @@ endif
 
 # Build the main unit test executable
 cu_tester: $(LOADER_OBJS) $(OBJS) 
+       $(LIBTOOL) --mode=link \
        $(CC)  $^ -o $@ $(LIBLWGEOM) $(LDFLAGS)
 
 # Command to build each of the .o files