From patchwork Sat May 3 07:28:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 29604 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1F8C02055D for ; Sat, 3 May 2014 07:28:17 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf29416860iec.4 for ; Sat, 03 May 2014 00:28:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=FavpYGb+Rsh8dgwTCQlp4d9krKx1Belx7EZn3UdbW8Q=; b=UeVaDa5gc57e5F7qVAHg0D2QyGyNNN+zab9dnLlMJt+4CUSbWsexrekEH2MUSL/bD6 rtG6PLilQK0TQgdY6F9KEgiiMiW5Gm/+/jQltE6uGzoGcZ+Qie+L0fv3T8z14Hl012tb MMM5GsNZPFRfrKMi7kKdWjD+kDMEsoMejFgp6PiHa045mhtS6QHL/QU3eXSCW4f1mcze zxY2WirH0miGIKIhqkDjn2j4IVVk9FdhXar0951MJKHJtveSTSBl9YX4IOzXWaehAqwD 0H5uO5FYBNs2fX3a8wFZcKKS15b7E97ofPi7A/e+mu750LOa7ieOuhCg8pDm+elOrJ2O 8NYA== X-Gm-Message-State: ALoCoQlMA0K3+K7KN6SBLhcg2lJLujVRlfDuXWKfolEiP8qFwFX0q8seOlK1Z9Ykv2LXZCXEMq5I X-Received: by 10.43.125.196 with SMTP id gt4mr10499362icc.32.1399102096968; Sat, 03 May 2014 00:28:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.97.200 with SMTP id m66ls1734048qge.83.gmail; Sat, 03 May 2014 00:28:16 -0700 (PDT) X-Received: by 10.52.175.166 with SMTP id cb6mr14089218vdc.1.1399102096873; Sat, 03 May 2014 00:28:16 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id dl6si308708veb.127.2014.05.03.00.28.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 May 2014 00:28:16 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id lf12so6360941vcb.41 for ; Sat, 03 May 2014 00:28:16 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr17086460vcb.0.1399102096793; Sat, 03 May 2014 00:28:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp6373vcb; Sat, 3 May 2014 00:28:16 -0700 (PDT) X-Received: by 10.112.201.1 with SMTP id jw1mr638273lbc.47.1399102095748; Sat, 03 May 2014 00:28:15 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx.google.com with ESMTPS id sz4si465501lbb.225.2014.05.03.00.28.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 May 2014 00:28:15 -0700 (PDT) Received-SPF: none (google.com: fathi.boudra@linaro.org does not designate permitted sender hosts) client-ip=209.85.217.172; Received: by mail-lb0-f172.google.com with SMTP id l4so226967lbv.3 for ; Sat, 03 May 2014 00:28:15 -0700 (PDT) X-Received: by 10.112.128.231 with SMTP id nr7mr16039832lbb.9.1399102094895; Sat, 03 May 2014 00:28:14 -0700 (PDT) Received: from localhost.localdomain (a91-152-78-194.elisa-laajakaista.fi. [91.152.78.194]) by mx.google.com with ESMTPSA id d8sm1303404lah.12.2014.05.03.00.28.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 May 2014 00:28:14 -0700 (PDT) From: Fathi Boudra To: libhugetlbfs-devel@lists.sourceforge.net Cc: Eric B Munson , Fathi Boudra Subject: [PATCH 1/1] Fix cross compilation on aarch64 Date: Sat, 3 May 2014 10:28:10 +0300 Message-Id: <1399102090-17432-1-git-send-email-fathi.boudra@linaro.org> X-Mailer: git-send-email 1.9.2 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: fathi.boudra@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch allow to override CC and use it for aarch64 case like the other architectures. Signed-off-by: Fathi Boudra --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 91502e1..5aa1e12 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ CFLAGS += -Wall -fPIC CPPFLAGS += -D__LIBHUGETLBFS__ ARCH = $(shell uname -m | sed -e s/i.86/i386/) -CC = gcc +CC ?= gcc CUSTOM_LDSCRIPTS = yes @@ -66,7 +66,7 @@ ELF32 += armelf_linux_eabi CUSTOM_LDSCRIPTS = no else ifneq (,$(findstring aarch64,$(ARCH))) -CC64 = gcc +CC64 = $(CC) ELF64 = aarch64elf TMPLIB64 = lib64 CUSTOM_LDSCRIPTS = no