Hi all, Please find attached a patch that was send to me by a Debian user to make possible the build of the i2c modules on a sparc64. Bye, Aurelien -- .''`. Aurelien Jarno GPG: 1024D/F1BCDB73 : :' : Debian GNU/Linux developer | Electrical Engineer `. `' aurel32 at debian.org | aurelien at aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net -------------- next part -------------- --- i2c-2.9.0.orig/Makefile +++ i2c-2.9.0/Makefile @@ -142,6 +142,12 @@ -mcmodel=kernel -fno-reorder-blocks -finline-limit=2000 -fno-strength-reduce endif +ifeq ($(MACHINE),sparc64) +MODCFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ + -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare \ + -Wa,--undeclared-regs +endif + ifeq ($(SMP),1) MODCPPFLAGS += -D__SMP__ endif