<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: &lt;blaisorblade_spam@yahoo.it&gt;

Avoid that gcc breaks UML with "unit at a time" compilation mode.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso &lt;blaisorblade_spam@yahoo.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 25-akpm/arch/um/Makefile |    2 ++
 1 files changed, 2 insertions(+)

diff -puN arch/um/Makefile~uml-avoid-that-gcc-breaks-uml-with-unit-at-a-time-compilation-mode arch/um/Makefile
--- 25/arch/um/Makefile~uml-avoid-that-gcc-breaks-uml-with-unit-at-a-time-compilation-mode	2004-07-05 16:00:16.770470952 -0700
+++ 25-akpm/arch/um/Makefile	2004-07-05 16:00:16.773470496 -0700
@@ -61,6 +61,8 @@ CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSU
 	-D_LARGEFILE64_SOURCE $(ARCH_INCLUDE) -Derrno=kernel_errno \
 	-Dsigprocmask=kernel_sigprocmask $(MODE_INCLUDE)
 
+CFLAGS += $(call check_gcc,-fno-unit-at-a-time,)
+
 LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
 
 # These are needed for clean and mrproper, since in that case .config is not
_
</pre></body></html>