3 ms·
> $ make install PREFIX=/Projects/binutils-gdb/stragerusr > After a minute, I realized that binutils was being installed in /ucrt64, not into my temporary dire
by mananaysiempre 3y ago
> $ make install PREFIX=/Projects/binutils-gdb/stragerusr
> After a minute, I realized that binutils was being installed in /ucrt64, not into my temporary directory. Oh no!
Tip: to install Autotools- or otherwise GNU-Coding-Standards-compliant projects (e.g. CMake-based ones using GNUInstallDirs) into places you haven’t configured them to go to, on the hope they will kinda sorta work, use DESTDIR[1]. The value of PREFIX (et al.) is set at configuration time, and overriding it via make does not work, while DESTDIR is there specifically to be overridden. It’s what Linux package managers use to create a parallel bin/, lib/, usr/, etc. hierarchy that’s then archived up into a package. (The value of DESTDIR is prepended to all destination paths, it does not override them.)
Also, support DESTDIR in your build systems. Distro maintainers will thank you.
[1] https://www.gnu.org/prep/standards/html_node/DESTDIR.html https://www.gnu.org/prep/standards/html_node/DESTDIR.html