From 6494b2d4b08c4e29a29c6c0c16eb0b3633b5e1ac Mon Sep 17 00:00:00 2001 From: grehan Date: Thu, 6 Jan 2005 06:26:11 +0000 Subject: Modules on PPC need to be compiled with -mlongcall to get around the +/-64k blr offset limitation. With gcc bug #12769 fixed, it's time to put enable this. --- sys/conf/kmod.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 5c3ea01..36b8d31 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -127,6 +127,10 @@ CFLAGS+= ${DEBUG_FLAGS} CFLAGS+= -fno-omit-frame-pointer .endif +.if ${MACHINE_ARCH} == "powerpc" +CFLAGS+= -mlongcall +.endif + OBJS+= ${SRCS:N*.h:R:S/$/.o/g} .if !defined(PROG) -- cgit v1.1