From patchwork Fri Dec 15 14:36:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Remus X-Patchwork-Id: 179327 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9321260dys; Fri, 15 Dec 2023 06:36:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXMmJu61X4AAcKFqjBF8Wcvjm68V7CekGbetd7kn60z6+8dByr5Hkl8mzo0hyJ02DzavP5 X-Received: by 2002:a05:622a:509:b0:423:6fca:66f1 with SMTP id l9-20020a05622a050900b004236fca66f1mr15816233qtx.0.1702650994356; Fri, 15 Dec 2023 06:36:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702650994; cv=pass; d=google.com; s=arc-20160816; b=pssPYixHe4ftb4DlokgfpuyzUmeSjKIa4RyO1ZEkyqzRYxjYvafRM5ZdRYNTV3sDBA OcvKjjI5Kub4kqdQh0Z6vHH8peM8i45bE0iUU5H3ECV4ln4caTZ6LjiblxdidSKkxdv9 vkBfFJaFl0e3w2Gypps7xApXTQdonZvfJOObG1J0embI7PhzMHsY/34uyWLKBXAlEc/e p5wYr9l9YiJcdEg/M10BAfF+CRvJHjgZk3+OyOxwjWDtLTK7+0LcmhGRRKDFPLnlLMcG sk4yGq01E2KkO+nSBxAKNOL4UUDPUvzJghkjyKI1cXqmpXtb5cTHynJx8kk4cHQot74q 5mtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=7Ok5O8VNG/bWe3W5ERL0I4vMYbl1uI9iZkBjzOcCFJo=; fh=lE3HXkiifBSVPU+f05x++3qNjjxlDvLZxwnRCBzavKo=; b=TJ836rYWgip5n63dN4U5XW4GkTN7BWIIc9NH/RzadQnWD5VQiE2OFsCz+78Yd6cyKj 248wQE8GYzFD3Tno3ylDGQzBzmmidVkFhuk52vziiiEBKXJOHrg1RCQ5V53H/UfRN1gG y5endcQ/BwuiTSosO1cCutcP7p+/7hYizKIROpcIPXBq1oU4jz0wn5AbbRbntnTvrDqZ vVRXURjti1wQbsRispzuVweHcV39PFuoEI3cjnEigzmMSNRpgxPO3t4/dGltV52CafvP 4Zd5rvkbKSE3B5eFcORsjjQuUtHcDNd3yMKCguT6O77mYx/v5xCFen02mjQ2diQ4wWdS mJ0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=BcN9AKBZ; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dn12-20020a05622a470c00b0042585e20c2csi15793634qtb.680.2023.12.15.06.36.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:36:34 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=BcN9AKBZ; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 41A663845BDF for ; Fri, 15 Dec 2023 14:36:32 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id D08F23858430 for ; Fri, 15 Dec 2023 14:36:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D08F23858430 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D08F23858430 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702650986; cv=none; b=MhIAf6VjCFUe/1xIhN+5px2XagfQ4pJ7ZPMCpic9++aCRP7XhMqPitqrt+kewPwWmZcq4Op7n3tED9c3+p8FspRC+xw+2zQ2aVqSbVvpjGHiew7Rzyhj+8yV8zRoKpqflk5b8ExESu8t1LaMo8+5REcN/IpzEGqpw3Ju8hKrz1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702650986; c=relaxed/simple; bh=tZKRgLtSzXCLXSnBYNMctZ2RPzVj24noUwerzCdyspU=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=SYcPBEK/wzjnNm/p6zdOjxhsnZJ+eUOgtLpNg0LD7uaXuovB6kvcRicFsKnfPmv7OGGNtct4CjeIYgPoJL5ZRE+H0WD68ays81+Y3IFDfkW00h99GNKDYao71Lsbq8lfH+L+Bw5uVi2gNpQjwbDv5+8Vt1QlBgER70fZIw4I8+k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BFEBnm5017166 for ; Fri, 15 Dec 2023 14:36:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=7Ok5O8VNG/bWe3W5ERL0I4vMYbl1uI9iZkBjzOcCFJo=; b=BcN9AKBZg+XETFNWiqtXZYOx5fwZDot364FfCnkjgmsnojqC+Qmjp2YmOcvXO+Dqw/yN zipzYAquITlT4kFleCInVxdGhw/729Ut0AUwfHHw2hZlj9WZ3KpKzBmZzOJzAjzlQgZ/ 5kEKlMAVZFeDEoRSfnCYfhlEdf29ehKT77vk9F6myKlbFVtCTfdY32WjNIdRwDfO9YOl qgw7hcbLluCagFlBNdSzFCOC05SOZKw1vPXyclHmBAjtJP0QpBz7uAOnysJ/J/ynsbbN I6xuOCJ+s0tVYmTG9CVb8MsJu7m/vx41sSdg4q8tWU+yi7G7AZ7pw0YiFkhpL+1Idbx/ iw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3v0p154gc1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 15 Dec 2023 14:36:23 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3BFECDQE019387 for ; Fri, 15 Dec 2023 14:36:22 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3v0p154gbp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2023 14:36:22 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3BFDwoqq012593; Fri, 15 Dec 2023 14:36:22 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3uw3jpgktv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2023 14:36:22 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3BFEaIWe45482702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Dec 2023 14:36:19 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DCDE420040; Fri, 15 Dec 2023 14:36:18 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B05B62004B; Fri, 15 Dec 2023 14:36:18 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 15 Dec 2023 14:36:18 +0000 (GMT) From: Jens Remus To: binutils@sourceware.org Cc: Jens Remus , Andreas Krebbel , Nick Clifton Subject: [PATCH v2 1/7] s390: Fix build when using EXEEXT_FOR_BUILD Date: Fri, 15 Dec 2023 15:36:10 +0100 Message-Id: <20231215143616.820185-2-jremus@linux.ibm.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231215143616.820185-1-jremus@linux.ibm.com> References: <20231215143616.820185-1-jremus@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: r5T3P6O4F6FYHwfLC5rki7gLRRXa6Ab4 X-Proofpoint-GUID: yB4-Np-7hydOaU8ERUTdl2B-mmISSp79 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-15_08,2023-12-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 bulkscore=0 phishscore=0 impostorscore=0 suspectscore=0 adultscore=0 spamscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312150099 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785358968887336118 X-GMAIL-MSGID: 1785358968887336118 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 Reviewed-by: Andreas Krebbel --- 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 -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 s390-opc.tab: s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.txt $(AM_V_GEN)./s390-mkopc$(EXEEXT_FOR_BUILD) < $(srcdir)/s390-opc.txt > s390-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 -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 s390-opc.tab: s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.txt $(AM_V_GEN)./s390-mkopc$(EXEEXT_FOR_BUILD) < $(srcdir)/s390-opc.txt > s390-opc.tab