From patchwork Sat Dec 7 18:30:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 2630 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 47VdLk3hVCz420M for ; Sat, 7 Dec 2019 18:30:54 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 47VdLh5XTmz2Ql; Sat, 7 Dec 2019 18:30:52 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 47VdLh2JT1z2yNR; Sat, 7 Dec 2019 18:30:52 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 47VdLf5zs9z2xrx for ; Sat, 7 Dec 2019 18:30:50 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 47VdLd6XZhz2C0; Sat, 7 Dec 2019 18:30:49 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1575743450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DrCH4XcMDWQYu7Drk00MomMBLYMW1Mvg9ZrD2n/3eb0=; b=C5xJCO5BceQCfxGlooE02iSPmNz2RCpEChwlstDhPHg2xuEJySTcjYIyYnsVRJsOdmYkkA uAawaG8WbZ045kBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1575743450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DrCH4XcMDWQYu7Drk00MomMBLYMW1Mvg9ZrD2n/3eb0=; b=CjP6eLODdOev8GSQayZiC3O+cEABr2lqgFDKj4niawspPGxeGW1BrA6KGrCX/xmblLpzjl 1q/wDjq3VXEjBHfuyIneMc6eGD1mMzOW31Z4X0MAMWIepvDeXoOoc37dApltRMvElVrqC4 jDUjvi4Vx4uB0wZ43kRysglR/9Fyh6Gbb/PaC+cfXi5mVpY7uGkmRgvEkz01ezUvRF/Dmr njl2NDlxvLvsh/YgrjR15RDrsAfimoqY//wuu4bSO7i2AQJJNaaLsi9oeCHdPdo24pijG9 5kevY+J9UQT9tNv8wd5BqTzZTptwJrivSJJOUm0lvq4JIAyDAYjzXQt40zVZzg== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] make.sh: Introduce RUSTFLAGS Date: Sat, 7 Dec 2019 19:30:45 +0100 Message-Id: <20191207183045.4244-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=stevee smtp.mailfrom=stefan.schantl@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" This allows to set arch-specific FLAGS when dealing with software written in rust. Signed-off-by: Stefan Schantl Reviewed-by: Michael Tremer --- make.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make.sh b/make.sh index 771c5ff89..2cdbe154a 100755 --- a/make.sh +++ b/make.sh @@ -174,6 +174,7 @@ configure_build() { CROSSTARGET="${build_arch}-cross-linux-gnueabi" BUILD_PLATFORM="arm" CFLAGS_ARCH="-march=armv5te -mfloat-abi=soft -fomit-frame-pointer" + RUSTFLAGS="-Ccodegen-units=1" ;; *) @@ -462,7 +463,7 @@ prepareenv() { # Setup environment set +h LC_ALL=POSIX - export LFS LC_ALL CFLAGS CXXFLAGS DEFAULT_PARALLELISM + export LFS LC_ALL CFLAGS CXXFLAGS DEFAULT_PARALLELISM RUSTFLAGS unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD # Make some extra directories @@ -547,6 +548,7 @@ enterchroot() { CONFIG_ROOT="${CONFIG_ROOT}" \ CFLAGS="${CFLAGS} ${HARDENING_CFLAGS}" \ CXXFLAGS="${CXXFLAGS} ${HARDENING_CFLAGS}" \ + RUSTFLAGS="${RUSTFLAGS}" \ BUILDTARGET="${BUILDTARGET}" \ CROSSTARGET="${CROSSTARGET}" \ BUILD_ARCH="${BUILD_ARCH}" \