Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc/usr.bin/crunch/crunchgen



In article <20010924004035.8FF50B008%cvs.netbsd.org@localhost>
tls%netbsd.org@localhost 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@localhost



Home | Main Index | Thread Index | Old Index