From b9160874be69ca4a08df3f19e2477d0b5fae4c52 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 29 Dec 2014 23:18:13 -0500 Subject: Compile with -static, set -m32 if in an i686 directory --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d3a7889..070c232 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ VERSION := $(shell if test -f version.txt; then cat version.txt; else git describe; fi) host_arch := $(shell uname -m) -#export CC := $(CC) -static + +export SHARED=0 +export CC = gcc -static $(if $(findstring i686,$@),-m32) # Just for convenience keymapdir = resources/utilities/grub-assemble/keymap -- cgit v1.2.3-54-g00ecf