diff options
| author | Roland McGrath <[email protected]> | 2005-11-18 23:55:47 +0000 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2005-11-18 23:55:47 +0000 |
| commit | 9365d2c3439c524c9ca0b9d70f0a559d392a7e05 (patch) | |
| tree | a497fe123eb3b18e4af66b94641b47ae26026962 | |
| parent | 32240f3d2bfd813354c63668dc966c8e27eaec40 (diff) | |
2005-11-18 Roland McGrath <[email protected]>
* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.
tests/
2005-11-18 Roland McGrath <[email protected]>
* test-subr.sh (installed_testrun): Treat /usr/lib64 like /usr/lib.
* test-wrapper.sh: Likewise.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | Makefile.am | 7 | ||||
| -rw-r--r-- | tests/ChangeLog | 5 | ||||
| -rw-r--r-- | tests/test-subr.sh | 2 | ||||
| -rwxr-xr-x | tests/test-wrapper.sh | 2 |
5 files changed, 18 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2005-11-18 Roland McGrath <[email protected]> + + * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable. + 2005-11-16 Roland McGrath <[email protected]> * configure.ac: Define HAVE_LIBASM and STANDALONE conditionals. diff --git a/Makefile.am b/Makefile.am index e7e93cdf..0c4d92b9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,6 +25,13 @@ SUBDIRS = $(mini_SUBDIRS) $(all_SUBDIRS) EXTRA_DIST = elfutils.spec GPG-KEY NOTES COPYING.GPL +# Make sure the test install uses lib64 when $LIB will yield lib64. +# Make sure the test build uses the same compiler, which on e.g. ppc64 +# determines which platform we are actually testing. +DISTCHECK_CONFIGURE_FLAGS = \ + --libdir=`echo $(libdir) | sed "s,^$(exec_prefix),$$dc_install_base,"`\ + CC="$(CC)" + distcheck-hook: chmod -R u+w $(distdir) diff --git a/tests/ChangeLog b/tests/ChangeLog index 31613f4e..90223351 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2005-11-18 Roland McGrath <[email protected]> + + * test-subr.sh (installed_testrun): Treat /usr/lib64 like /usr/lib. + * test-wrapper.sh: Likewise. + 2005-11-17 Roland McGrath <[email protected]> * Makefile.am (installed_TESTS_ENVIRONMENT): Set libdir, bindir in diff --git a/tests/test-subr.sh b/tests/test-subr.sh index 995c4951..a0ef5449 100644 --- a/tests/test-subr.sh +++ b/tests/test-subr.sh @@ -82,7 +82,7 @@ installed_testrun() program=${bindir}/`program_transform ${program##*/}` ;; esac - if [ "${libdir}" != /usr/lib ]; then + if [ "${libdir}" != /usr/lib ] && [ "${libdir}" != /usr/lib64 ]; then LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \ $program ${1+"$@"} else diff --git a/tests/test-wrapper.sh b/tests/test-wrapper.sh index a4f2a218..4963ce25 100755 --- a/tests/test-wrapper.sh +++ b/tests/test-wrapper.sh @@ -45,7 +45,7 @@ case "$1" in elif [ $elfutils_tests_rpath = yes ]; then echo >&2 installcheck not possible with --enable-tests-rpath exit 77 - elif [ "x$libdir" != x/usr/lib ]; then + elif [ "x$libdir" != x/usr/lib ] && [ "x$libdir" != x/usr/lib64 ]; then LD_LIBRARY_PATH="$libdir${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" export LD_LIBRARY_PATH fi |
