NetBSD/sys/arch/mips/include/Makefile.inc
simonb 4471b94432 This Makefile.inc is used for building LKMS - add the standard MIPS
kernel compile flags as well as "-mlong-calls" so that calls from the
LKM in KSEG2 work to the kernel in KSEG0.

MIPS LKMs now build and can be loaded with the right Magick command line
args to modload(8).  Changes to modload coming...

Thanks to Chris Demetriou for pointing out the -mlong-calls gcc option
that had been staring me in the face all along.
2001-10-05 15:36:46 +00:00

8 lines
223 B
Makefile

# $NetBSD: Makefile.inc,v 1.1 2001/10/05 15:36:46 simonb Exp $
# Standard kernel compile flags
CFLAGS += -G 0 -mno-abicalls -mno-half-pic
# Needed so modules loaded in KSEG2 can make calls to KSEG0
CFLAGS += -mlong-calls