Subject: Re: CVS commit: basesrc/usr.bin/crunch/crunchgen
To: None <tls@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: source-changes
Date: 09/24/2001 18:19:08
In article <20010924004035.8FF50B008@cvs.netbsd.org>
tls@netbsd.org wrote:
> Modified Files:
> basesrc/usr.bin/crunch/crunchgen: crunchgen.c
>
> Log Message:
> Changes to the emitted makefiles that actually build the objects:
>
> 1) Always do a make clean before building objects in any directory. This
> is wasteful, but there's really no other simple way to cope with the
> fact that the compilation settings (e.g. CFLAGS) appropriate for the
> non-crunched build of a program may not be appropriate for the crunched
> build. If the objdir magic in make didn't rely upon the presence of an
> "obj" or "obj.${MACHINE}" symlink, we could abuse it to handle this but
> unfortunately, it does.
I think if you want to build smaller objects for a crunched binary,
you should prepare separated directories (under distrib/utils/)
for them, rather than just doing make clean in objdirs for
non-crunched binaries. Not all ports require -Os for crunched binaries.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp