[geos-commits] r2691 - trunk/tests/unit

svn_geos at osgeo.org svn_geos at osgeo.org
Fri Oct 23 05:00:09 EDT 2009


Author: strk
Date: 2009-10-23 05:00:08 -0400 (Fri, 23 Oct 2009)
New Revision: 2691

Modified:
   trunk/tests/unit/Makefile.am
Log:
Fix static building of C-api demo/tests


Modified: trunk/tests/unit/Makefile.am
===================================================================
--- trunk/tests/unit/Makefile.am	2009-10-23 08:34:28 UTC (rev 2690)
+++ trunk/tests/unit/Makefile.am	2009-10-23 09:00:08 UTC (rev 2691)
@@ -94,12 +94,15 @@
 noinst_HEADERS = \
 	utility.h
 
+# The -lstdc++ is needed for --disable-shared to work
 geostest_SOURCES = capi/geostest.c
-geostest_LDADD = $(top_builddir)/capi/libgeos_c.la
+geostest_LDADD = $(top_builddir)/capi/libgeos_c.la -lstdc++
 
+# The -lstdc++ is needed for --disable-shared to work
 threadtest_SOURCES = capi/threadtest.c
-threadtest_LDADD = $(top_builddir)/capi/libgeos_c.la -lpthread
+threadtest_LDADD = $(top_builddir)/capi/libgeos_c.la -lpthread -lstdc++
 
+# The -lstdc++ is needed for --disable-shared to work
 badthreadtest_SOURCES = capi/badthreadtest.c
-badthreadtest_LDADD = $(top_builddir)/capi/libgeos_c.la -lpthread
+badthreadtest_LDADD = $(top_builddir)/capi/libgeos_c.la -lpthread -lstdc++
 



More information about the geos-commits mailing list