Takahashi Yoshihiro wrote:

> +.if ${MACHINE} == "pc98" && ${OBJFORMAT} == "elf"
> +USRDIRS+=      usr/libexec/aout
> +.endif

I don't think you need to test for OBJFORMAT. Also, include MACHINE_ARCH
in case of cross-building. eg:

.if ${MACHINE_ARCH} == "i386" && ${MACHINE} == "pc98"

> +.if ${MACHINE} == "pc98" && ${OBJFORMAT} == "elf"
> +_aout_tools=   usr.bin/size usr.bin/strip gnu/usr.bin/as gnu/usr.bin/ld
> +.endif

Same here.

>  .for _tool in ${_strfile} gnu/usr.bin/binutils usr.bin/objformat \
> -    usr.bin/yacc gnu/usr.bin/bison gnu/usr.bin/cc
> +    usr.bin/yacc gnu/usr.bin/bison gnu/usr.bin/cc ${_aout_tools}


Don't build anything after cc has been built, because cc will be a
cross-compiler when cross-building. Try putting it as early as possible.

Other than that: Go ahead!

BTW: Is there a special reason to have boot2 in aout?

-- 
Marcel Moolenaar                        mailto:[EMAIL PROTECTED]
SCC Internetworking & Databases           http://www.scc.nl/
The FreeBSD project                mailto:[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to