fix gdb issues (at least for static builds); resolves bug 194
authorMorgan Deters <mdeters@gmail.com>
Mon, 4 Oct 2010 22:23:53 +0000 (22:23 +0000)
committerMorgan Deters <mdeters@gmail.com>
Mon, 4 Oct 2010 22:23:53 +0000 (22:23 +0000)
src/Makefile.am
src/parser/Makefile.am
test/regress/run_regression

index fb337e2041fe9dab66ac0d06b8f2d22caa3370ee..944600c818a8b0ee38662527408061b9b0624310 100644 (file)
@@ -20,19 +20,24 @@ AM_CXXFLAGS = -Wall -Wno-unknown-pragmas $(FLAG_VISIBILITY_HIDDEN)
 SUBDIRS = lib expr util context theory prop smt . parser main
 
 lib_LTLIBRARIES = libcvc4.la
-
 noinst_LTLIBRARIES = libcvc4_noinst.la
 
 libcvc4_la_LDFLAGS = -version-info $(LIBCVC4_VERSION)
-libcvc4_la_LINK = $(CXXLINK)
-
-libcvc4_la_SOURCES =
-libcvc4_la_LIBADD = libcvc4_noinst.la
 
 # empty.cpp is a fake file added to "trick" automake into linking us as a
 # C++ library (rather than as a C library, which messes up exception
 # handling support)
+libcvc4_la_SOURCES = empty.cpp
 libcvc4_noinst_la_SOURCES = empty.cpp
+libcvc4_la_LIBADD = \
+       @builddir@/util/libutil.la \
+       @builddir@/expr/libexpr.la \
+       @builddir@/context/libcontext.la \
+       @builddir@/prop/libprop.la \
+       @builddir@/prop/minisat/libminisat.la \
+       @builddir@/smt/libsmt.la \
+       @builddir@/theory/libtheory.la \
+       @builddir@/lib/libreplacements.la
 libcvc4_noinst_la_LIBADD = \
        @builddir@/util/libutil.la \
        @builddir@/expr/libexpr.la \
index dbb6e559fed3f41d4fc13ac9c202795d221cd91d..0533200fa492ef3b446b1b8f4085d6beaf4f7dd2 100644 (file)
@@ -24,17 +24,38 @@ noinst_LTLIBRARIES = libcvc4parser_noinst.la
 
 libcvc4parser_la_LDFLAGS = $(ANTLR_LDFLAGS) \
        -version-info $(LIBCVC4PARSER_VERSION)
-libcvc4parser_la_LIBADD = libcvc4parser_noinst.la
-libcvc4parser_la_LINK = $(CXXLINK)
-
 libcvc4parser_noinst_la_LDFLAGS = $(ANTLR_LDFLAGS)
+
+libcvc4parser_la_LIBADD = \
+       @builddir@/smt/libparsersmt.la \
+       @builddir@/smt2/libparsersmt2.la \
+       @builddir@/cvc/libparsercvc.la \
+       @builddir@/../lib/libreplacements.la
 libcvc4parser_noinst_la_LIBADD = \
        @builddir@/smt/libparsersmt.la \
        @builddir@/smt2/libparsersmt2.la \
        @builddir@/cvc/libparsercvc.la \
        @builddir@/../lib/libreplacements.la
 
-libcvc4parser_la_SOURCES =
+libcvc4parser_la_SOURCES = \
+       antlr_input.h \
+       antlr_input.cpp \
+       antlr_input_imports.cpp \
+       bounded_token_buffer.h \
+       bounded_token_buffer.cpp \
+       bounded_token_factory.h \
+       bounded_token_factory.cpp \
+       input.h \
+       input.cpp \
+       memory_mapped_input_buffer.h \
+       memory_mapped_input_buffer.cpp \
+       parser.h \
+       parser.cpp \
+       parser_builder.h \
+       parser_builder.cpp \
+       parser_options.h \
+       parser_exception.h
+
 libcvc4parser_noinst_la_SOURCES = \
        antlr_input.h \
        antlr_input.cpp \
index b26792a7830141e66cc64bfada3face0fc3c1268..ebef82cf1ba3b5433d4df08556b311e491a5c073 100755 (executable)
@@ -132,7 +132,7 @@ cvc4base=`basename "$cvc4"`
 cvc4full="$cvc4dirfull/$cvc4base"
 echo  running $cvc4full `basename "$benchmark"` from `dirname "$benchmark"`
 ( cd `dirname "$benchmark"`;
-  "$cvc4full" --segv-nospin `basename "$benchmark"`;
+  "$cvc4full" $CVC4_REGRESSION_ARGS --segv-nospin `basename "$benchmark"`;
   echo $? >"$exitstatusfile"
 ) > "$outfile" 2> "$errfile"