]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
testsuite: libsframest: use as, ld, collect-ld from build dir
authorIndu Bhagat <indu.bhagat@oracle.com>
Tue, 23 Apr 2024 23:00:49 +0000 (16:00 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Sun, 23 Mar 2025 19:04:01 +0000 (12:04 -0700)
commitfafb1fafdb8292a624bd3a3a97a3587d85f90b3a
tree5847d105ca7e6ba750e6bb9d4ff78a20f4882394
parentd327bb48a80b60ac2cd5811ecdd20f2bdbde2545
testsuite: libsframest: use as, ld, collect-ld from build dir

instead of host's as and ld.  Also disable libsframest build if cross
compiling.  The testsuite will consequently also be skipped.

Override the check-am make target and first execute setup.sh to bring in
the as-new / ld-new and use -B<path> to ensure these are picked up for
building:
  - libsframest
  - libsframe.stacktrace testsuite

Remove the configure time variable HAVE_SFRAME_AS as it is now
unnecessary.

TBD:
  - Get review on whether the whole setup.sh way of doing this is OK.
    But it seems there is no other way ?
  - Check the portability of the setup.sh script.

ChangeLog:
* libsframe/Makefile.am: Override check-am to first run setup.sh
before invoking make.  This ensures libsframest is built with
the newly setup tmpdir/libsframe.
* libsframe/Makefile.in: Regenerate.
* libsframe/acinclude.m4: Delete.
* libsframe/aclocal.m4: Remove include for acinclude.m4.
* libsframe/configure: Regenerate.
* libsframe/configure.ac: Remove HAVE_SFRAME_AS.  Add a new
AM_CONDITIONAL for CROSS_COMPILE.
* libsframe/setup.sh: New file.
* libsframe/testsuite/config/default.exp: Remove the creation
and setup of tmpdir/lisframe.
* libsframe/testsuite/lib/sframe-lib.exp: Use -B<path> to use
the as/ld from build tree.
* libsframe/testsuite/libsframe.stacktrace/libsframest/local.mk:
Use -B<path> and use the as/ld from build tree.
* libsframe/testsuite/libsframe.stacktrace/stacktrace.exp: Skip
testing if cross build.
libsframe/Makefile.am
libsframe/Makefile.in
libsframe/acinclude.m4 [deleted file]
libsframe/aclocal.m4
libsframe/configure
libsframe/configure.ac
libsframe/setup.sh [new file with mode: 0755]
libsframe/testsuite/config/default.exp
libsframe/testsuite/lib/sframe-lib.exp
libsframe/testsuite/libsframe.stacktrace/libsframest/local.mk
libsframe/testsuite/libsframe.stacktrace/stacktrace.exp