tech-toolchain archive

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

Re: changing optimization for crunchgen components



>       If I've missed something, could you clarify how the '-d' flag
> is involved (I assume that is the make invocation).   And is it the
> '-d' flag causes it to expand the DBG macro?  I'd like to know if
> you tried it at least.

crunchgen(8) says:

>>     -d build-options
>>             Set the DBG variable in the generated makefile to build-options.
>>             The default flags are -Os.

In src/rescue/Makefile:
---
# XXX
.if ${MACHINE_ARCH} != "m68000"
DBG=            -Os
.endif

CRUNCHGEN_FLAGS=-d "${DBG}"

 :

.include "${DISTRIBDIR}/common/Makefile.crunch"

---

src/distrib/common/Makefile.crunch has:
---
#       CRUNCHGEN_FLAGS extra options to crunchgen(1)

 :

${CRUNCHBIN}.mk: ${CRUNCHBIN}.conf  ${CRUNCHGEN}
        ${CRUNCHENV} ${TOOL_CRUNCHGEN} -f -D ${NETBSDSRCDIR} \
            -L ${DESTDIR}/usr/lib -q ${CRUNCHGEN_FLAGS} ${CRUNCHBIN}.conf

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index