OK - it took awhile to understand this test - and I think it does indicate a bug.
If I understand the test it is expecting the directory addrunpath=`pwd`/foobar to be added to the .la file (and now I understand the name of the test :)) -- tests/
runpath-in-lalib.atI expect this is to 'happen' with this statement
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o
liba.la a.lo -rpath $libdir -R$addrunpath],
[], [ignore], [ignore])
At the end of the test - this is the contents of the .la files regarding libraries:
address@hidden:[/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070]tail -3
liba.la# Directory that this library needs to be installed in:
libdir='/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/inst/lib'
address@hidden:[/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070]tail -3
libb.la# Directory that this library needs to be installed in:
libdir='/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/inst/lib'
relink_command="(cd /data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070; /bin/sh \"/data/prj/gnu/libtool/libtool-2.4.6/libtool\" --mode=relink cc -O2 -qlanglvl=extc99 -o
libb.la b.lo -rpath /data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/inst/lib
liba.la @inst_prefix_dir@)"
Looking at the .so.0 files though...
address@hidden:[/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070]dump -H .libs/liba.so.0 | tail -3
***Import File Strings***
INDEX PATH BASE MEMBER
0 /data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/foobar:/usr/vac/lib:/usr/lib:/lib
address@hidden:[/data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070]dump -H .libs/libb.so.0 | tail -4
***Import File Strings***
INDEX PATH BASE MEMBER
0 /data/prj/gnu/libtool/libtool-2.4.6/tests/testsuite.dir/070/inst/lib:/usr/vac/lib:/usr/lib:/lib
1 liba.a liba.so.0
We see that .../foobar has been added to the internal LIBPATH variable.