2005-11-18 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 18 Nov 2005 23:55:47 +0000 (23:55 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 18 Nov 2005 23:55:47 +0000 (23:55 +0000)
* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.

tests/
2005-11-18  Roland McGrath  <roland@redhat.com>

* test-subr.sh (installed_testrun): Treat /usr/lib64 like /usr/lib.
* test-wrapper.sh: Likewise.

ChangeLog
Makefile.am
tests/ChangeLog
tests/test-subr.sh
tests/test-wrapper.sh

index 92384a2..1932f30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-18  Roland McGrath  <roland@redhat.com>
+
+       * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.
+
 2005-11-16  Roland McGrath  <roland@redhat.com>
 
        * configure.ac: Define HAVE_LIBASM and STANDALONE conditionals.
index e7e93cd..0c4d92b 100644 (file)
@@ -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)
 
index 31613f4..9022335 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-18  Roland McGrath  <roland@redhat.com>
+
+       * test-subr.sh (installed_testrun): Treat /usr/lib64 like /usr/lib.
+       * test-wrapper.sh: Likewise.
+
 2005-11-17  Roland McGrath  <roland@redhat.com>
 
        * Makefile.am (installed_TESTS_ENVIRONMENT): Set libdir, bindir in
index 995c495..a0ef544 100644 (file)
@@ -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
index a4f2a21..4963ce2 100755 (executable)
@@ -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