From e6712fa11a935c1f8c87f6ce904b99e171f07bc7 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Thu, 20 Sep 2018 17:00:43 -0700 Subject: [PATCH 1/2] build: don't assume path to bash Not all OSs use /usr/bin. --- buildvars.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildvars.sh b/buildvars.sh index 80951d8beaf..cfea530ad05 100755 --- a/buildvars.sh +++ b/buildvars.sh @@ -1,4 +1,5 @@ -#!/bin/bash -e +#!/usr/bin/env bash +set -e # Vars exported to the build info echo TECTONIC_VERSION "${TECTONIC_VERSION}" From 36daed847ccd268a890f622e3df6b0e87b88af7b Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Thu, 20 Sep 2018 17:01:08 -0700 Subject: [PATCH 2/2] build: enable pure builds This ensures that we don't build dynamically linked executables. Static linking is desirable because it will allow the generated binaries to run on any Linux distribution. --- .bazelrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 2f0032c9dfc..3ff8578938e 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,2 +1,2 @@ startup --output_base .build -build --color=yes --workspace_status_command "${PWD}/buildvars.sh" +build --color=yes --features=pure --workspace_status_command "${PWD}/buildvars.sh"