]> granicus.if.org Git - postgis/commitdiff
Only build static liblwgeom
authorRaúl Marín Rodríguez <rmrodriguez@carto.com>
Tue, 22 Jan 2019 15:04:04 +0000 (15:04 +0000)
committerRaúl Marín Rodríguez <rmrodriguez@carto.com>
Tue, 22 Jan 2019 15:04:04 +0000 (15:04 +0000)
References #4260
Closes https://github.com/postgis/postgis/pull/366

git-svn-id: http://svn.osgeo.org/postgis/trunk@17211 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/Makefile.in
liblwgeom/cunit/Makefile.in

index ecf271f1ccaf040bd1996d87d61d6afebe524df7..33807b0e073c08fc332c908aa7630bd8a439a146 100644 (file)
@@ -171,7 +171,7 @@ $(LT_OBJS): ../postgis_config.h ../postgis_svn_revision.h $(SA_HEADERS)
 
 liblwgeom.la: $(LT_OBJS)
        $(LIBTOOL) --tag=CC --mode=link $(CC) -rpath $(libdir) $(LT_OBJS) \
-             -release $(SOVER) -version-info $(VERSION_INFO) $(LDFLAGS) -o $@
+             -release $(SOVER) -version-info $(VERSION_INFO) $(LDFLAGS) -static -o $@
 
 maintainer-clean: clean
        rm -f lwin_wkt_lex.c
index e32bc7ba4e318c311d4d5c596e0ce6e8d63a27f2..02b18ed99af5030034bb22300ae09c35480851fa 100644 (file)
@@ -95,7 +95,7 @@ endif
 
 # Build the main unit test executable
 cu_tester: ../liblwgeom.la $(OBJS)
-       $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ $(OBJS) ../liblwgeom.la $(LDFLAGS)
+       $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) -static ../liblwgeom.la
 
 # Command to build each of the .o files
 $(OBJS): %.o: %.c