Avoid that gcc breaks UML with "unit at a time" compilation mode; this patch
is for 2.6. Please test it.
uml-Dike-linux-2.6.6-paolo/arch/um/Makefile | 2 ++
1 files changed, 2 insertions(+)
diff -puN arch/um/Makefile~disable-UnitAtATime arch/um/Makefile
--- uml-Dike-linux-2.6.6/arch/um/Makefile~disable-UnitAtATime 2004-06-19
+++ uml-Dike-linux-2.6.6-paolo/arch/um/Makefile 2004-06-19 11:56:11.000000000
@@ -61,6 +61,8 @@ CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSU
-D_LARGEFILE64_SOURCE $(ARCH_INCLUDE) -Derrno=kernel_errno \
+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
On Sat, 19 Jun 2004, BlaisorBlade mused:
> Avoid that gcc breaks UML with "unit at a time" compilation mode; this patch
> is for 2.6. Please test it.
btw, I'd call this a workaround. Only a very few files --- that depend on
the exact ordering of functions, variable declarations, or top-level asm
blocks in the file --- should need it.
Eventually, non-unit-at-a-time mode will probably go away entirely.
`We in no way believe that this Christ was a space alien.'
--- A creationist website goes completely bonkers