landley / mkroot

Simple Linux build, bootable under qemu for multiple architectures.
Other
456 stars 72 forks source link

Combination of CROSS= and NOLOGPATH= breaks PATH #16

Open natecain opened 2 years ago

natecain commented 2 years ago

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