]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
s390: Fix build when using EXEEXT_FOR_BUILD
authorJens Remus <jremus@linux.ibm.com>
Wed, 20 Dec 2023 10:14:47 +0000 (11:14 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 20 Dec 2023 10:50:32 +0000 (11:50 +0100)
commit78aa7688e896cccae138d0bf13099f7b729150c2
tree9fcad5cf69bfd629e411ea1aa56184f4cf4dcaec
parent06f05f35856b37bc6db014d0921638932dd5a97a
s390: Fix build when using EXEEXT_FOR_BUILD

Suffix the s390-mkopc build utility executable file name with
EXEEXT_FOR_BUILD. Otherwise it cannot be located when building with
EXEEXT_FOR_BUILD. Use pattern used for other architecture build
utilities and compile and link s390-mkopc in two steps.

While at it also specify the dependencies of s390-mkopc.c.

opcodes/
* Makefile.am: Add target to build s390-mkopc.o. Correct
  target to build s390-mkopc$(EXEEXT_FOR_BUILD).
* Makefile.in: Regenerate.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Reviewed-by: Andreas Krebbel <krebbel@linux.ibm.com>
opcodes/Makefile.am
opcodes/Makefile.in