arsv / perl-cross

configure and cross-compile perl
Other
81 stars 29 forks source link

Makefile: Avoid continual rebuilds of miniperl and associated races #95

Closed rpurdie closed 4 years ago

rpurdie commented 4 years ago

In the Yocto Project, when we run "make install" we notice miniperl rebuilding multiple times. Usually this is harmless however sometimes race issues occur such as miniperl not being executable.

The issue is that crosspatch is a phony target so it always rebuilds. Adding this as a dependency of miniperl means miniperl always rebuilds too.

Avoid this by injecting a direct dependency avoiding the phony target. miniperl is then only rebuilt when its input changes as desired.

Signed-off-by: Richard Purdie richard.purdie@linuxfoundation.org

arsv commented 4 years ago

Merged, thanks.