summaryrefslogtreecommitdiffstats
path: root/core/combo/linux-x86.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/combo/linux-x86.mk')
-rw-r--r--core/combo/linux-x86.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/core/combo/linux-x86.mk b/core/combo/linux-x86.mk
new file mode 100644
index 0000000..d3ad566
--- /dev/null
+++ b/core/combo/linux-x86.mk
@@ -0,0 +1,27 @@
+# Configuration for Linux on x86.
+# Included by combo/select.make
+
+# right now we get these from the environment, but we should
+# pick them from the tree somewhere
+$(combo_target)CC := $(CC)
+$(combo_target)CXX := $(CXX)
+$(combo_target)AR := $(AR)
+
+$(combo_target)GLOBAL_CFLAGS += -fPIC -m32
+$(combo_target)GLOBAL_CFLAGS += \
+ -include $(call select-android-config-h,linux-x86)
+$(combo_target)GLOBAL_LDFLAGS += -m32
+
+$(combo_target)NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined
+
+ifeq ($(combo_target),HOST_)
+# $(1): The file to check
+define get-file-size
+stat --format "%s" "$(1)"
+endef
+
+# Which gcc to use to build qemu, which doesn't work right when
+# built with 4.2.1 or later.
+GCCQEMU := prebuilt/linux-x86/toolchain/i686-linux-gnu-3.4.6/bin/gcc
+
+endif # HOST