From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 414C71A1E04 for ; Tue, 2 Aug 2016 07:39:39 -0700 (PDT) Received: by mail-wm0-x231.google.com with SMTP id o80so293752471wme.1 for ; Tue, 02 Aug 2016 07:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=yrQy4WWnHJmdT6htS4ydKrirRPS5lPit9LwL+Kbebcg=; b=kyIsu8xMNFCNy8wXLLxwMaHbUKnuCYWtGOuDDPJ6E6U7aGYmxC/kIiicXRqx9gNW/g G6KhfiZi+NRlOCVgeOIq3BtCBoe1qr2yitadsdyjZWwZyDmG3iYIJwQADKnHJgy48q2Q sVGov80Skko/wT8zaOYzahyJjDyuBExgNxWlk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yrQy4WWnHJmdT6htS4ydKrirRPS5lPit9LwL+Kbebcg=; b=hwc22z9aKDd+0peZPBVEvhzbiEfJ8IRyqD156nhfhjsQEyt8orCV8obuYBPCEcjHvH I09S4CFMtZ316FGU9HG3VN/CF/EqGLteLEk/I1jTz+faN2bejoGXS6i/87L2K2dcPLGL 0VRcV2ojhbYg9J+mt7TmvrysR4PCVkue/ZUnU9XGA6f9tLxTFLztkdCwtGP+P/LDOk7R KJH12D5DYZIr//gxYHmclwhTFxYM+bSilgac6u6+5YU/3sBN0laLK6lO2vQZ3hNABspl sprfnkA9KB1qM+uP6NvPOGyLYCJDdbWIWr27nAy/PjkW+qwuDSr9iy/HLumoMPR6DzLs /GQQ== X-Gm-Message-State: AEkoousViPBdOhKKKWkWAtD6pVL/ztRsNXCuWeQplbKN0vhpBFbNGc9cZxB/vvfuLDzCy/eT X-Received: by 10.194.187.134 with SMTP id fs6mr27512437wjc.3.1470148777622; Tue, 02 Aug 2016 07:39:37 -0700 (PDT) Received: from localhost.localdomain (3.red-81-34-118.dynamicip.rima-tde.net. [81.34.118.3]) by smtp.gmail.com with ESMTPSA id v203sm3375254wmv.2.2016.08.02.07.39.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Aug 2016 07:39:36 -0700 (PDT) From: Ard Biesheuvel To: yonghong.zhu@intel.com, liming.gao@intel.com, jordan.l.justen@intel.com, edk2-devel@lists.01.org, leif.lindholm@linaro.org Cc: sigmaepsilon92@gmail.com, Ard Biesheuvel Date: Tue, 2 Aug 2016 16:39:29 +0200 Message-Id: <1470148772-15712-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH 0/3] BaseTools GCC: pass CC flags to linker X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2016 14:39:39 -0000 GCC5 runs in LTO mode, which means it may generate code during the link stage, and this code generation should be subject to the same settings as ordinary code generation. Since we now invoke GCC as the linker, we can start passing the CC_FLAGS to the linker as well, with only minor surgery. This does not bother non-LTO links at all, and forces the LTO links to use the correct settings. Ard Biesheuvel (3): BaseTools GCC: move -c compiler flag to build rules BaseTools GCC5: disable warnings-as-errors for now BaseTools GCC: add the compiler flags to the linker command line BaseTools/Conf/build_rule.template | 18 ++++++++++-------- BaseTools/Conf/tools_def.template | 18 +++++++++--------- 2 files changed, 19 insertions(+), 17 deletions(-) -- 2.7.4