The libtool version distributed by Debian is patched to *not* propagate dependencies (i.e., if libA depends on libB, then linking against libA will not automatically link against libB, it has to be explicit), contrary to what the Libtool manual document. So now we explicitly link against both libA and libB in such case. * configure.ac: Remove the workaround that does not work for MinGW. * doc/org/compile.org: Mention the issue. * bin/Makefile.am, tests/Makefile.am, spot/ltsmin/Makefile.am, doc/org/g++wrap.in: Make the dependencies explicit.
18 lines
668 B
Bash
Executable file
18 lines
668 B
Bash
Executable file
#!/bin/sh
|
|
# This is a wrapper around the compiler, to ensure that the code
|
|
# example run from the org-mode file are all linked with Spot.
|
|
#
|
|
# Also we save errors to org.errors, so that we can detect issues
|
|
# after org-mode has exported everything. Otherwise these errors
|
|
# would go undetected.
|
|
@top_builddir@/libtool link @CXX@ @CXXFLAGS@ -Wall -Werror \
|
|
-I@abs_top_builddir@ -I@abs_top_srcdir@ -I@abs_top_srcdir@/buddy/src \
|
|
"$@" @abs_top_builddir@/spot/libspot.la \
|
|
@abs_top_builddir@/buddy/src/libbddx.la 2> errors.$$
|
|
code=$?
|
|
if test $code -ne 0 && test -s errors.$$; then
|
|
cat errors.$$ >>org.errors
|
|
cat errors.$$ >&2
|
|
fi
|
|
rm -f errors.$$
|
|
exit $code
|