From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1448) id 5A49B3858C2C; Wed, 20 Dec 2023 10:53:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A49B3858C2C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andreas Krebbel To: bfd-cvs@sourceware.org Subject: [binutils-gdb] s390: Fix build when using EXEEXT_FOR_BUILD X-Act-Checkin: binutils-gdb X-Git-Author: Jens Remus X-Git-Refname: refs/heads/master X-Git-Oldrev: 06f05f35856b37bc6db014d0921638932dd5a97a X-Git-Newrev: 78aa7688e896cccae138d0bf13099f7b729150c2 Message-Id: <20231220105301.5A49B3858C2C@sourceware.org> Date: Wed, 20 Dec 2023 10:53:01 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2023 10:53:01 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D78aa7688e896= cccae138d0bf13099f7b729150c2 commit 78aa7688e896cccae138d0bf13099f7b729150c2 Author: Jens Remus Date: Wed Dec 20 11:14:47 2023 +0100 s390: Fix build when using EXEEXT_FOR_BUILD =20 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. =20 While at it also specify the dependencies of s390-mkopc.c. =20 opcodes/ * Makefile.am: Add target to build s390-mkopc.o. Correct target to build s390-mkopc$(EXEEXT_FOR_BUILD). * Makefile.in: Regenerate. =20 Signed-off-by: Jens Remus Reviewed-by: Andreas Krebbel Diff: --- opcodes/Makefile.am | 7 +++++-- opcodes/Makefile.in | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/opcodes/Makefile.am b/opcodes/Makefile.am index 5804dd1ab38..ea264989509 100644 --- a/opcodes/Makefile.am +++ b/opcodes/Makefile.am @@ -570,8 +570,11 @@ opc2c$(EXEEXT_FOR_BUILD): opc2c.o $(BUILD_LIBS_DEPS) opc2c.o: opc2c.c $(INCDIR)/libiberty.h $(AM_V_CC)$(COMPILE_FOR_BUILD) -c $(srcdir)/opc2c.c =20 -s390-mkopc$(EXEEXT_FOR_BUILD): s390-mkopc.c - $(AM_V_CCLD)$(COMPILE_FOR_BUILD) -o s390-mkopc $(srcdir)/s390-mkopc.c +s390-mkopc$(EXEEXT_FOR_BUILD): s390-mkopc.o + $(AM_V_CCLD)$(LINK_FOR_BUILD) s390-mkopc.o + +s390-mkopc.o: s390-mkopc.c $(INCDIR)/opcode/s390.h + $(COMPILE_FOR_BUILD) -c $(srcdir)/s390-mkopc.c =20 s390-opc.tab: s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.txt $(AM_V_GEN)./s390-mkopc$(EXEEXT_FOR_BUILD) < $(srcdir)/s390-opc.txt > s39= 0-opc.tab diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in index e2c6e5a4374..7586b54fbd8 100644 --- a/opcodes/Makefile.in +++ b/opcodes/Makefile.in @@ -1548,8 +1548,11 @@ opc2c$(EXEEXT_FOR_BUILD): opc2c.o $(BUILD_LIBS_DEPS) opc2c.o: opc2c.c $(INCDIR)/libiberty.h $(AM_V_CC)$(COMPILE_FOR_BUILD) -c $(srcdir)/opc2c.c =20 -s390-mkopc$(EXEEXT_FOR_BUILD): s390-mkopc.c - $(AM_V_CCLD)$(COMPILE_FOR_BUILD) -o s390-mkopc $(srcdir)/s390-mkopc.c +s390-mkopc$(EXEEXT_FOR_BUILD): s390-mkopc.o + $(AM_V_CCLD)$(LINK_FOR_BUILD) s390-mkopc.o + +s390-mkopc.o: s390-mkopc.c $(INCDIR)/opcode/s390.h + $(COMPILE_FOR_BUILD) -c $(srcdir)/s390-mkopc.c =20 s390-opc.tab: s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.txt $(AM_V_GEN)./s390-mkopc$(EXEEXT_FOR_BUILD) < $(srcdir)/s390-opc.txt > s39= 0-opc.tab