summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--configs/linux-x86-3213
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a099475481..a7f52ab500 100644
--- a/Makefile
+++ b/Makefile
@@ -105,6 +105,7 @@ linux-ultrasparc \
linux-tcc \
linux-x86 \
linux-x86-debug \
+linux-x86-32 \
linux-x86-64 \
linux-x86-64-static \
linux-x86-glide \
diff --git a/configs/linux-x86-32 b/configs/linux-x86-32
new file mode 100644
index 0000000000..61a147466b
--- /dev/null
+++ b/configs/linux-x86-32
@@ -0,0 +1,13 @@
+# To build Linux x86 32-bit in an x86-64 environment
+
+include $(TOP)/configs/linux-x86
+
+CONFIG_NAME = linux-x86-32
+
+
+# Other than -m32, these are the same as in linux-x86, which we included above.
+
+CFLAGS = -m32 -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include
+
+CXXFLAGS = -m32 -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
+