sudo make install triggers build as root, making .build/xdr-boost owned by root. Any subsequent non-sudo build fails:
ld: can't write output file: .build/xdr-boost
Repro: make build → sudo make install → make launch-agent → fails
Cause: Dependency chain launch-agent → install → build means sudo propagates into the build step.
Fix: Remove build as a dependency of install (and install from launch-agent), so sudo is only used for the copy to /usr/local/bin.
sudo make installtriggersbuildas root, making.build/xdr-boostowned by root. Any subsequent non-sudo build fails:Repro:
make build→sudo make install→make launch-agent→ failsCause: Dependency chain
launch-agent → install → buildmeanssudopropagates into the build step.Fix: Remove
buildas a dependency ofinstall(andinstallfromlaunch-agent), sosudois only used for the copy to/usr/local/bin.