Date: Mon, 28 Dec 1998 19:44:59 +0800 From: Peter Wemm <peter@netplex.com.au> To: Doug Rabson <dfr@nlsystems.com> Cc: Greg Lehey <grog@lemis.com>, FreeBSD current users <FreeBSD-current@FreeBSD.ORG> Subject: Re: How do I build an a.out kld? Message-ID: <199812281145.TAA65000@spinner.netplex.com.au> In-Reply-To: Your message of "Mon, 28 Dec 1998 10:45:56 GMT." <Pine.BSF.4.01.9812281041290.381-100000@herring.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Rabson wrote: > On Mon, 28 Dec 1998, Greg Lehey wrote: [..] > > 2. I could build an a.out kld. Unfortunately, there's an > > (undocumented) program called gensetdefs which runs against the > > objects, and expects only ELF files. It doesn't understand an > > -aout flag. Can I get past this problem? > > Are you using bsd.kmod.mk? If you look at it, gensetdefs is only used for > elf. Linking an a.out module is even simpler: > > ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${OBJS} ${KMODDEPS} > > Try 'make OBJFORMAT=aout' and see what happens. Err, my recollection was that it needed to be in the environment, ie more like: env OBJFORMAT=aout make Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812281145.TAA65000>