summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-03-03 01:44:42 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-03-03 01:44:42 +0000
commit7644bfb536c1cdb6dd3223469f1d6d2f1d5146c8 (patch)
tree293b10d709ba1df808cfd81eb15f7b01d49c18c5
parent3e1961839ee570fe3b1257ceaf88d630635c0349 (diff)
Added linux-x86-32 config to force building 32-bit objects in a 64-bit environment.
-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
+