From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 317C5385B835 for ; Fri, 10 Apr 2020 18:55:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 317C5385B835 Received: by mail-ot1-x331.google.com with SMTP id n25so2690824otr.10 for ; Fri, 10 Apr 2020 11:55:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wUF1PXebq5X/hTETAZW+prTAmeLy+KuHF+7aHF58qaM=; b=ohJQ4eV+ZxSbSCQexuXwimkBFIK1gqKFo2ZaNHQay9XFX8s1Uy1JuHC3KsGqamgId3 ChCJlJM1cJVXAyCw6wi6q8nT02rrupPIheUIxqGRERtxNdzyVyqbTYdoVlFyall5UCbj ipGNtJzVsaAjeYMud3hv9FfQk3QoLqmIQ8xRWm25NvyJxN/98Sym2a4F6HFzkzUGiMd4 4Jz/Up1KhbwLfG3u46XeEmBbVDVKrewsTLq5+O6YJ42I2XvQaHimQFY/1cPT+x5Crbul qCfccimI94q1LTuYpksMvGENNb/dqtM8Wqr/hB3YfM8pCitWIhneTVVHebc2rbK/rV7h we8Q== X-Gm-Message-State: AGi0PuarEvfjt1V5AhXDcFHQEHXur6un4WQSxWMDGTovJ5zlnSHCxtJ8 DtEx5fMFpJSJW6Rvuh/cvEv+T0IHLZ0YtFFXJkR7yw== X-Google-Smtp-Source: APiQypLR7EMy5DzatEaaGYkEI5CuTlebIIvWjnOrYQoTsxZlWiAoF3gIbPDXGCP6LwNsbnPNQ+vFbc8DWOa7tsVUP4k= X-Received: by 2002:a4a:d749:: with SMTP id h9mr5029152oot.15.1586544957327; Fri, 10 Apr 2020 11:55:57 -0700 (PDT) MIME-Version: 1.0 From: Maxim Blinov Date: Fri, 10 Apr 2020 19:55:46 +0100 Message-ID: Subject: Pass compile flags to libitm/ subdirectory (and in general) To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2020 18:55:59 -0000 Hi all, Is it possible to pass compilation flags to subdirectories of GCC, e.g. to libitm/? I'd like to pass CFLAGS="-Wno-error" CXXFLAGS="-Wno-error" to work on some stuff (among possibly others in the future), but when I try to $ /src/gcc/.configure CFLAGS="-Wno-error", CXXFLAGS="-Wno-error" --prefix=foo --target=bar and then do $ CFLAGS="-Wno-error" CXXFLAGS="-Wno-error" make only the core GCC code honours those flags. How can I get libitm/ to honour them too? Maxim