]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 92384a2db2a1b87e454820f323ee07aa2c921320..1932f30f3703fc48af61974e72c4a09177171bc2 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 e7e93cdf673a5a4584cee297fc8c5cc40dbda8f5..0c4d92b9b4b719e4d973d82931dd4bc508452641 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 31613f4eb3741ff67ec9866ef0ca4e2ccc23cb78..90223351ef8cacf80abe7903cddbc5f075276daa 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 995c4951ebb6c51c3cd3e8ac2e0830b93f0927c2..a0ef54497c45b677b9726c566d8647f7273de3c6 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 a4f2a2182715b23c32cd6816bc05210a0ae65a14..4963ce25786ec1ce861830a79fb24f3d2d74ed66 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