Skip to content

Makefile: sudo make install causes permission errors on subsequent builds #5

@HarinderG

Description

@HarinderG

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 buildsudo make installmake 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions