aboutsummaryrefslogtreecommitdiff
path: root/generate
diff options
context:
space:
mode:
Diffstat (limited to 'generate')
-rw-r--r--generate/unix/Makefile.config9
1 files changed, 9 insertions, 0 deletions
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
index da0f61d5147c..a1f0313ef103 100644
--- a/generate/unix/Makefile.config
+++ b/generate/unix/Makefile.config
@@ -148,6 +148,15 @@ ACPICA_HEADERS = \
OPT_CFLAGS ?= $(CWARNINGFLAGS)
#
+# Common compiler flags
+# The _GNU_SOURCE symbol is required for many hosts.
+#
+ifeq ($(M32),TRUE)
+CFLAGS +=-m32
+LDFLAGS +=-m32
+endif
+
+#
# Optionally disable optimizations. Optimization causes problems on
# some compilers such as gcc 4.4
#