summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-12-29 23:18:13 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-12-29 23:18:13 -0500
commitb9160874be69ca4a08df3f19e2477d0b5fae4c52 (patch)
tree192a4a48bc5f0f5d613a10e8d81a1b329072438d /Makefile
parent7d68a92e0b043f0fec0561e88aec68d1fe96c9cc (diff)
Compile with -static, set -m32 if in an i686 directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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