From patchwork Sat Dec 31 14:16:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 62502 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D91363858428 for ; Sat, 31 Dec 2022 14:16:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D91363858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672496200; bh=wckDPiUdeZZ+UNnHs88tTcnx5II+gQuQ/JNwuvOtrtw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=tRi9CEslepd9O96IcuXkuVlAgWnJqi52D9NVfseMlqB5+GJ7eQYuH8xs4T8ouHU3y zDlhbifABlydkJ72gNqiC9ddWFa2hSBA390dtt9G+AtSxKpjKnVmMWLXVH+J16GgN4 JvwuwTjsBkePFxrACkWHi0DWq3Nw7zdK/ZyUdAgs= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 4C3603858D1E for ; Sat, 31 Dec 2022 14:16:13 +0000 (GMT) Received: by mail-wm1-x333.google.com with SMTP id ja17so17218839wmb.3 for ; Sat, 31 Dec 2022 06:16:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wckDPiUdeZZ+UNnHs88tTcnx5II+gQuQ/JNwuvOtrtw=; b=gZbfz/inqoGMDdQYozqfYqVCfUHcCISxX1/kr+2Lrc8PPYX4yIHndlaK18j12P39mQ PwyQWN8YsvFv3zH1FtnBq8wFbBesMRcVWr2OlLiSbCXl9cr5UJIXLAPSCe3U9P+YQI/3 FZbr+PBaZdJNbHVtnKelPMkr8sq8M5FTs+/lHVbwxCBwiE1MPPEgFq69iAv+5bF6Ol9Z 7rrEcO/WO3zdhPZ2RCdJsm9Imp1f3j4buQrnMTdWls81lB7EK4b9Jf7bEI+bZ0uDekS0 BZRkfH+OJaSu2H/xr514CsOTQwks/8B0/qAGCecy5uaCzZOZqqvapj5l1f69m+pw5C3C 5zGw== X-Gm-Message-State: AFqh2kr3xr8TfX9SCk0zY8+1LTm/tKYfH1kqckRDm4dDlZTUTkoRc+EI cqV3TcgOh56NtyKIIi1t6g0lkRsJ3/M= X-Google-Smtp-Source: AMrXdXuoUM79F4+YGlU3kMR+P9QcRDX0dsAWcN51gSK3UtcK51hVH/1azS3iRE6ip0Iu0x2CKGvdoQ== X-Received: by 2002:a7b:c3c9:0:b0:3d2:e28:647f with SMTP id t9-20020a7bc3c9000000b003d20e28647fmr30557470wmj.15.1672496172010; Sat, 31 Dec 2022 06:16:12 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id f6-20020adff446000000b002425504ae7dsm22761780wrp.80.2022.12.31.06.16.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 31 Dec 2022 06:16:11 -0800 (PST) X-Google-Original-From: Iain Sandoe To: gcc-patches@gcc.gnu.org Subject: [PATCH] configure: Do not build the unused libffi shared library. Date: Sat, 31 Dec 2022 14:16:10 +0000 Message-Id: <20221231141610.11021-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) MIME-Version: 1.0 X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Iain Sandoe via Gcc-patches From: Iain Sandoe Reply-To: iain@sandoe.co.uk Cc: Iain Sandoe Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Tested on i686/powerpc/x86_64/aarch64 Darwin, x86_64-linux-gnu, OK for master? thanks Iain --- 8< --- We do not use the shared libffi library, nor do we install it. However, on at least Darwin, the shared version will be picked up for testing, so it is preferrable not to build it. Signed-off-by: Iain Sandoe ChangeLog: * Makefile.def: Do not build shared libffi. * Makefile.in: Regenerate. --- Makefile.def | 3 ++- Makefile.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.def b/Makefile.def index 86d15f1982f..35e994eb77e 100644 --- a/Makefile.def +++ b/Makefile.def @@ -181,7 +181,8 @@ target_modules = { module= libtermcap; no_check=true; missing=maintainer-clean; }; target_modules = { module= winsup; }; target_modules = { module= libgloss; no_check=true; }; -target_modules = { module= libffi; no_install=true; }; +target_modules = { module= libffi; no_install=true; + extra_configure_flags='--disable-shared --with-pic'; }; target_modules = { module= zlib; bootstrap=true; }; target_modules = { module= rda; }; target_modules = { module= libada; }; diff --git a/Makefile.in b/Makefile.in index d66e6208fa2..06a9398e172 100644 --- a/Makefile.in +++ b/Makefile.in @@ -55467,7 +55467,7 @@ configure-target-libffi: $$s/$$module_srcdir/configure \ --srcdir=$${topdir}/$$module_srcdir \ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ - --target=${target_alias} \ + --target=${target_alias} --disable-shared --with-pic \ || exit 1 @endif target-libffi