summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-11-18 16:36:12 -0500
committerMartin-Éric Racine <martin-eric.racine@iki.fi>2011-11-21 10:33:11 +0200
commitac99bf2c5cdf86f039a290397614ca042a56c8db (patch)
tree42ecb73e35d5b0f5cf1595679788dfd5568a2fdb /src
parent3021c6df08004ec9ed846fec4000d798148eeb0e (diff)
Detect 32bit support on 64bit OS and compile with -m32 if found
For gcc compiler only at the moment. The configuration reports if support is found or not, e.g.: checking if gcc supports the -m32 Intel/AMD option... yes The configuration C test relies on #include unistd.h which includes features.h which includes gnu/stubs.h which includes gnu/stubs-32.h which is missing on 64 bit system without the 32 bit library support. Tested on x86_64 AMD64 CPU with/without libc6-dev-i386 which provides 32 bit support. Remains to be tested on Geode and FreeBSD 32/64 bit. The configuration does not attempt to decide if building should proceed or be aborted. If no 32 bit support then the build will die in the assembly code as it always did before. The variable M32_CFLAGS provides the flag for the makefiles. The variable names and organization is subject to change. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index d5f57b9..86139de 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -35,6 +35,7 @@ AM_CFLAGS = \
$(XORG_CFLAGS) \
$(CWARNFLAGS) \
$(AMD_CFLAGS) \
+ $(M32_CFLAGS) \
-DHAVE_GX \
-DHAVE_LX \
-DOPT_ACCEL