summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2005-01-06 06:26:11 +0000
committergrehan <grehan@FreeBSD.org>2005-01-06 06:26:11 +0000
commit6494b2d4b08c4e29a29c6c0c16eb0b3633b5e1ac (patch)
tree95ce0b273d14faba43b64b8c45c5267bf0c1d4d2 /sys/conf/kmod.mk
parent386418146ace619a71040a6244b97f16879f892e (diff)
downloadFreeBSD-src-6494b2d4b08c4e29a29c6c0c16eb0b3633b5e1ac.zip
FreeBSD-src-6494b2d4b08c4e29a29c6c0c16eb0b3633b5e1ac.tar.gz
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.
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r--sys/conf/kmod.mk4
1 files changed, 4 insertions, 0 deletions
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)
OpenPOWER on IntegriCloud