I tried to use
check_LTLIBRARIES = libfoo.la
but found it added "-rpath $(checkdir)" to the libtool link, which
didn't work since $(checkdir) doesn't exist.
I thought to use this as a convenience library built only under a
"make check". If this is how it's meant to be used then I think it
should omit -rpath, the same as noinst_LTLIBRARIES.
* automake.in (handle_ltlibraries): Omit -rpath from
check_LTLIBRARIES, as per noinst_LTLIBRARIES.
--- automake.in.old Thu Jan 4 09:48:13 2001
+++ automake.in Thu Jan 4 09:46:04 2001
@@ -2049,7 +2049,8 @@
}
local ($rpath);
- if ($instdirs{$onelib} eq 'EXTRA' || $instdirs{$onelib} eq 'noinst')
+ if ($instdirs{$onelib} eq 'EXTRA' || $instdirs{$onelib} eq 'noinst'
+ || $instdirs{$onelib} eq 'check')
{
# It's an EXTRA_ library, so we can't specify -rpath,
# because we don't know where the library will end up.