From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (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 6E9871A1E26 for ; Thu, 4 Aug 2016 07:43:04 -0700 (PDT) Received: by mail-wm0-x22c.google.com with SMTP id q128so487057304wma.1 for ; Thu, 04 Aug 2016 07:43:04 -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:in-reply-to:references; bh=KRJ9+gLaKdxwqq5t0nrDdPfpATEYsWyS35ARv3UC8nA=; b=CkRglGV6GNEAcrL93pVlM0apYlkpHVW3BB+/y5shYYZMISNbg/o/UCrpAgXH/1NApn 7MqpIKPto2k0YOLw+0NXA7q7fRdQfpQa8nyHfIk3+XXQXHc6lwDc1efYLogLKYJf8WXf WLXwnQXmeDIsi8zPca3s9jhoMdhGzYj+0Mrxo= 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:in-reply-to :references; bh=KRJ9+gLaKdxwqq5t0nrDdPfpATEYsWyS35ARv3UC8nA=; b=kpMaMHTffBlBVloVolN+5CEO1rbhJ+eVYU8ZeVQJlASR+07bEU98VW7kizWq0ba2tb fV/MrLTNkRdLqGwIa2XFvisKQ8AOEqTGQ1MAMhpSGYwTitHdfHkPzJ0kXmeHpMt5wbHU UfIXaw4wmxMesOd7TCJ56VUSBsYj+uSeW4Cu8uV1Z4TvuOfTBzakFfHJmOiP9Lup4P6f ZjUynw/ulZl/Pv5a+zj4NYqkdbyG+rec7v5cNBeLqv97dfqF45zSouU4as5jJYN9pDvo EG2vlIbVVzStMcS+wHMRk+cRuEvvesVmqxzNBl+5nR2cxomcuzNuLXwT0Zm8/GsTt3as t6/Q== X-Gm-Message-State: AEkooutqE5GG0QKCLF1jhGK+V2YcIEHD+glcc5VpzpssehxRVIXE24C1zHcjYon1IU3dgFPY X-Received: by 10.194.70.165 with SMTP id n5mr67216126wju.135.1470321783027; Thu, 04 Aug 2016 07:43:03 -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 va3sm13209789wjb.18.2016.08.04.07.43.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Aug 2016 07:43:02 -0700 (PDT) From: Ard Biesheuvel To: yonghong.zhu@intel.com, liming.gao@intel.com, edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, eugene@hp.com, Ard Biesheuvel Date: Thu, 4 Aug 2016 16:42:47 +0200 Message-Id: <1470321767-26921-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470321767-26921-1-git-send-email-ard.biesheuvel@linaro.org> References: <1470321767-26921-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [PATCH 3/3] BaseTools GCC/ARM: add -fno-builtin to CC flags 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: Thu, 04 Aug 2016 14:43:05 -0000 Avoid build errors when including OpensslLib, which may throw undefined reference errors for builtin functions if -fno-builtin is not specified (and it is already set for IA32, X64 and AARCH64) So set it for ARM as well. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index 88af82a683d9..4f1dd4be378e 100644 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -4334,7 +4334,7 @@ DEFINE GCC_ALL_CC_FLAGS = -g -Os -fshort-wchar -fno-strict-aliasing - DEFINE GCC_IA32_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -m32 -malign-double -freorder-blocks -freorder-blocks-and-partition -O2 -mno-stack-arg-probe DEFINE GCC_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe DEFINE GCC_IPF_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -minline-int-divide-min-latency -DEFINE GCC_ARM_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -mabi=aapcs -fno-short-enums -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=soft +DEFINE GCC_ARM_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -mabi=aapcs -fno-short-enums -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-builtin -Wno-address -mthumb -mfloat-abi=soft DEFINE GCC_AARCH64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-builtin -Wno-address -fno-asynchronous-unwind-tables DEFINE GCC_AARCH64_CC_XIPFLAGS = -mstrict-align DEFINE GCC_DLINK_FLAGS_COMMON = -nostdlib --pie -- 2.7.4