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.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
# 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