Hi,

Shouldn't the following code snippet be enough to make module-assistant
work on PPC64 and hopefully still work on all machines with a 64-bit
kernel. Maybe it should also check if the arch is powerpc just to be on
the safe side?

--- module-assistant-0.10.2/modass/include/generic.make.orig    2006-04-05 
10:22:36.000000000 +0200
+++ module-assistant-0.10.2/modass/include/generic.make 2006-04-05 
10:23:08.000000000 +0200
@@ -48,6 +48,11 @@
 endif
 endif

+# Check if we are running a 64bit kernel
+ifneq "$(wildcard $(KSRC)/include/linux/config/64bit.h)" ""
+       CFLAGS += -m64
+endif
+
 # Special case gcc 2.7.2
 ifeq ($(CC),gcc-2.7)
 CC = gcc272

It is completely untested though as I don't have access to any PPC64 machine.

/torkel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to