summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-05-05 22:02:40 +0200
committerIvan Maidanski <ivmai@mail.ru>2013-05-05 22:02:40 +0200
commite7e8093d612e83309333bdc1a2c672d15168a711 (patch)
tree1e4fad3bbfe6719fd7f27d87fda3dfea365a0dce
parenta1103330ed427d13cb5f08c30785945efb720238 (diff)
Adjust build scripts to enable additional test library in staticrootstest
(The 2nd test library contains global data too but has no GC_INIT call.) * tests/tests.am (staticrootstest_CFLAGS, libstaticrootslib2_test_la_CFLAGS): New definition (to test with libsrl_getpelem2() enabled). * tests/tests.am (staticrootstest_LDADD, check_LTLIBRARIES): Add libstaticrootslib2_test.la. * tests/tests.am (libstaticrootslib2_test_la_SOURCES, libstaticrootslib2_test_la_LIBADD, libstaticrootslib2_test_la_LDFLAGS): New definition (similar to that of libstaticrootslib_test_la_X).
-rw-r--r--tests/tests.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/tests.am b/tests/tests.am
index b63e0b3..e6c98c4 100644
--- a/tests/tests.am
+++ b/tests/tests.am
@@ -48,13 +48,20 @@ realloc_test_LDADD = $(test_ldadd)
TESTS += staticrootstest$(EXEEXT)
check_PROGRAMS += staticrootstest
staticrootstest_SOURCES = tests/staticrootstest.c
-staticrootstest_LDADD = $(test_ldadd) libstaticrootslib_test.la
-check_LTLIBRARIES += libstaticrootslib_test.la
+staticrootstest_CFLAGS = -DSTATICROOTSLIB2
+staticrootstest_LDADD = $(test_ldadd) libstaticrootslib_test.la \
+ libstaticrootslib2_test.la
+check_LTLIBRARIES += libstaticrootslib_test.la libstaticrootslib2_test.la
libstaticrootslib_test_la_SOURCES = tests/staticrootslib.c
libstaticrootslib_test_la_LIBADD = $(test_ldadd)
libstaticrootslib_test_la_LDFLAGS = -version-info 1:3:0 -no-undefined \
-rpath /nowhere
libstaticrootslib_test_la_DEPENDENCIES = $(top_builddir)/libgc.la
+libstaticrootslib2_test_la_SOURCES = tests/staticrootslib.c
+libstaticrootslib2_test_la_LIBADD = $(test_ldadd)
+libstaticrootslib2_test_la_CFLAGS = -DSTATICROOTSLIB2
+libstaticrootslib2_test_la_LDFLAGS = -version-info 1:3:0 -no-undefined \
+ -rpath /nowhere
if KEEP_BACK_PTRS
TESTS += tracetest$(EXEEXT)