From patchwork Fri Jun 2 16:08:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 101282 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp475445qge; Fri, 2 Jun 2017 09:11:55 -0700 (PDT) X-Received: by 10.55.4.137 with SMTP id 131mr9621148qke.140.1496419915632; Fri, 02 Jun 2017 09:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496419915; cv=none; d=google.com; s=arc-20160816; b=yCQXDt02uf4/9G/wGTTIB5uxSXhTZoOuydQh5vLZzUAyDNGD4IcT8SKbO3h7edkrSL YcaQrsu5dcFFO2G979fYPCo2Q51yJY7F5/+zp3LKw93YmZMcRPgZor3P/oInoI7Hfp9o LZOU3qxKFwOwxhzhMJoTMllF31uIZnKxKCYgcnuDpZ3SXeR+Xnzjs19hh1RV9mPV7am+ 2DNeB8zFNDd0p82ebwZTlCk9DO2Ruk5Eelra6OdwoYutTqzHhc+NY7G1jFwffadq4HPw Ifx+gfZD8soPN9ka5f2D+fplbPoBYXTwuuTf99HE6VQNYL63ftBPytg8azXqYB0yDYxL Pmmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=i53bjYCFRwspWhHeexTtRr0V4E+fero576Y6nVyjLAs=; b=FB0+/rVZngOOU2XTW4hcADEyYDP5454JxCeD1HkGl26TextsS8qfrNV0RlkJYxj6zk bz76/AEJ+TO/EQ7cqMUuh+UxZvy/Oc3nlsElAORUP18Vj+g2afvkl8HHaSS/e1conor1 XGljpmfss610mFwC3wVTb7trbZxGRNmaY/z+t1y8FJx7ZH1Cb8B06DY6kPhT/wpCVGib MRSrEuTjSpACyKax+DI7BimmGj6xslpP8lwkij3vObJDN1NfBm3gI6UI6WIiPTNjpYzG 5dqj8fXpdGNV7jMK8raciSIWyVmtK+2a99pcIWGrSvAg6L+Pg/CEYCYg+nkwnsbROymK YVkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k72si13867201qke.301.2017.06.02.09.11.55 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 02 Jun 2017 09:11:55 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGpB3-0008HT-56 for patch@linaro.org; Fri, 02 Jun 2017 12:11:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGp7w-0005wt-DW for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGp7v-0004z6-FM for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:40 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGp7v-0004yj-8c for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:39 -0400 Received: by mail-wm0-x234.google.com with SMTP id d127so30557378wmf.0 for ; Fri, 02 Jun 2017 09:08: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=i53bjYCFRwspWhHeexTtRr0V4E+fero576Y6nVyjLAs=; b=MqB0sIYODaxU/IrNrZv6nKC/AaQOpnjn5t6aTI3LFbqXK215kM/Awx/w+C7bNxRWU2 BURgTRH8DUsMef0tSfVaELkivk2QduvbrsnzjWyHunvKU8IUBLu58Wc+K5OGJjjVdelP lEI0D6/slVh66rCxtrdk4j/0M5f8sF29L8hpo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i53bjYCFRwspWhHeexTtRr0V4E+fero576Y6nVyjLAs=; b=OqPJPN0qfeiIa80YM5edt4mCRUvwhtr8pypuUYxJE/m+WqJz6iVsivcZSjToCcy+uE DYW02RHy0dphrYZN7IJ6jQI3BZ50BrxTRKRF6/MkXMC+zikvQkqftkEpc4wLizejUlWa nkCsPbk7kk99N1lYGY4JPdLFCOfNAFZSqGMFtRfiN4grnmVoeWfwkp2MoaQG95nj2KHL DFlJKEQ72Ap/syFm97RONneSFXPO60GbTIWyyZ1CLfSxScVDKAZFyGt36OSw7UsDrMjK Sdx4Vf+//nRNwVrC6wUzf8z5EpqSseftechIyCP927w1xaLw5H16kWXUOpmUr1PnFJfV RPQw== X-Gm-Message-State: AODbwcAMip6srr8in8XNlRx+wS7jejFucdd0TUw3AJvUIVxIdH5T86Xu m9dcC4kWtJNU7N/A X-Received: by 10.28.149.65 with SMTP id x62mr35426wmd.35.1496419718271; Fri, 02 Jun 2017 09:08:38 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id e73sm2258505wmd.1.2017.06.02.09.08.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 09:08:36 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 7FA7A3E031F; Fri, 2 Jun 2017 17:08:54 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 2 Jun 2017 17:08:41 +0100 Message-Id: <20170602160848.4913-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170602160848.4913-1-alex.bennee@linaro.org> References: <20170602160848.4913-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::234 Subject: [Qemu-devel] [RISU PATCH v4 03/10] build-all-archs: support --static flag X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée --- build-all-archs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.13.0 diff --git a/build-all-archs b/build-all-archs index 78f062e..788ba36 100755 --- a/build-all-archs +++ b/build-all-archs @@ -18,6 +18,7 @@ usage() { Options include: --use-docker[=tags] use docker cross compile + --static build a static binary If specifying docker the default will be to use the any qemu:debian-FOO-cross targets available on your system. @@ -41,6 +42,9 @@ while [[ "$1" = -* ]]; do docker_tags="$arg" fi ;; + --static) + CONF="--static" + ;; --help) usage ;; @@ -88,7 +92,7 @@ for triplet in aarch64-linux-gnu arm-linux-gnueabihf m68k-linux-gnu \ rm -rf build/${triplet} mkdir -p build/${triplet} - CONFIGURE="cd build/${triplet} && CROSS_PREFIX="${triplet}-" ../../configure" + CONFIGURE="cd build/${triplet} && CROSS_PREFIX=${triplet}- ../../configure ${CONF}" MAKE="make -C build/${triplet} EXTRA_CFLAGS=-Werror" if [ -z "$use_docker_tag" ]; then