From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (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 338A32095A5B3 for ; Fri, 2 Jun 2017 02:02:41 -0700 (PDT) Received: by mail-it0-x235.google.com with SMTP id r63so11612504itc.1 for ; Fri, 02 Jun 2017 02:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=igQcWJxjWQbLNMU98KmrRekoKzilv7LTkoSterKgc3U=; b=AXCBhFYJaQnU0iqXpgMz4cDEqtLpsL3VO023AxN69rE7XA+NLYeE9OVguTnCIyzoyg 8V3923Hu0vh6fOkpu1Sj/0KXKWPFTw+lxYjamV2sWr3jaczy4GMgMTRNmDifHcfkg12Z dJZczacPe2YXyiCwBeE7izfRZBPsbyOZZF7Iw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=igQcWJxjWQbLNMU98KmrRekoKzilv7LTkoSterKgc3U=; b=jTPkK/M+bVPeU4cHD35IZFA+pLIKyBgXQW0ttkKuY8y2400Bty3b3YDxaLSKiYd92E 9aEJT2XXSo/iUyeABXrX90ESc0jOMRL4IXAW3m0bfDn3vG7fEy//lXCGCUjP0DOJzmBO 6ioxTUd7CxvA6Z4L/vxUAzt9E+dKchq5aZFYgwLCeA41YuQOt8FwF8UOuM2DEeFUk1BD PR+wlPG3EJhx1FvWP6NKYAUP+H3ly7I4PmI87xVVYTINfH+BCvaEfwajRXLNaYMD8mgF PLixHkcRBC7XxeA+Pu7/ho1y7dB7J8S3YYE/tnNHsyrDmVo8K+1DmPuSGjXLccmgKee2 lYMQ== X-Gm-Message-State: AODbwcCrGaTOcmRfv5M/weoY1R6mGV5KqkjNE3qZyed4r9St1ggX4yIY w9ZCKo1ci+TMJbiurW3Hr4D3Bzw2mBPU X-Received: by 10.107.84.1 with SMTP id i1mr6153198iob.72.1496394222432; Fri, 02 Jun 2017 02:03:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.164.24 with HTTP; Fri, 2 Jun 2017 02:03:42 -0700 (PDT) In-Reply-To: <20170601235640.25540-1-jordan.l.justen@intel.com> References: <20170601235640.25540-1-jordan.l.justen@intel.com> From: Ard Biesheuvel Date: Fri, 2 Jun 2017 09:03:42 +0000 Message-ID: To: Jordan Justen Cc: "edk2-devel@lists.01.org" , Laszlo Ersek Subject: Re: [PATCH 1/2] EmulatorPkg/Unix/Host: Add GCC5 CC/DLINK commands (for GCC >= 5) X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2017 09:02:41 -0000 Content-Type: text/plain; charset="UTF-8" On 1 June 2017 at 23:56, Jordan Justen wrote: A commit log would be nice > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > --- > EmulatorPkg/Unix/Host/Host.inf | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/EmulatorPkg/Unix/Host/Host.inf b/EmulatorPkg/Unix/Host/Host.inf > index d83857a1fd..33990fc20e 100644 > --- a/EmulatorPkg/Unix/Host/Host.inf > +++ b/EmulatorPkg/Unix/Host/Host.inf > @@ -122,6 +122,7 @@ > GCC:*_*_IA32_ASM_FLAGS == -m32 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h > > GCC:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/Host -m64 -L/usr/X11R6/lib > + GCC:*_GCC5_X64_DLINK_FLAGS == -flto -o $(BIN_DIR)/Host -m64 -L/usr/X11R6/lib > GCC:*_*_X64_CC_FLAGS == -m64 -g -fshort-wchar -fno-strict-aliasing -Wall -malign-double -idirafter/usr/include -c -include $(DEST_DIR_DEBUG)/AutoGen.h -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings > GCC:*_GCC44_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))" > GCC:*_GCC45_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))" > @@ -129,6 +130,7 @@ > GCC:*_GCC47_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))" > GCC:*_GCC48_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))" > GCC:*_GCC49_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))" > + GCC:*_GCC5_X64_CC_FLAGS = "-DEFIAPI=__attribute__((ms_abi))" -flto -DUSING_LTO -Os Single = is additive, so is it necessary to add the -Os as well? > GCC:*_*_X64_PP_FLAGS == -m64 -E -x assembler-with-cpp -include $(DEST_DIR_DEBUG)/AutoGen.h > GCC:*_*_X64_ASM_FLAGS == -m64 -c -x assembler -imacros $(DEST_DIR_DEBUG)/AutoGen.h > > -- > 2.11.0 >