landley/mkroot

Combination of CROSS= and NOLOGPATH= breaks PATH

natecain opened this issue · 0 comments

Command: ./scripts/mkroot.sh dropbear CROSS=aarch64 NOLOGPATH=1 V=s

Expectation: Root is built with a cross-compiled dropbear, the same as if NOLOGPATH had not been specified

Result: cross compiler is not seen in path. Configure for dropbear detects and uses host compiler, resulting in a build with the host compiler. Then ${CROSS_COMPILE}strip dropbearmulti fails with /home/user/toybox/ccc/aarch64-linux-musleabi-cross/bin/aarch64-linux-musleabi-strip: Unable to recognise the format of the input file 'dropbearmulti'

Mitigation: compiling without NOLOGPATH specified seems to always work correctly