• R
    fix atomicity and other issues installing dynamic linker symlink · 82fa6b43
    Rich Felker 提交于
    ln -sf is non-atomic; it unlinks the destination first. instead, make
    a temporary link and rename it into place.
    
    this commit also fixes some of the dependency tracking behavior for
    the link. depending on the directory it's to be installed in is not
    reasonable; it causes a new link to be attempted if the library
    directory has been modified, but does not attempt to make a new link
    just because libc has been updated. instead, depend on the target to
    be linked to. this will ensure that, if prefix has changed but
    syslibdir has not, the link will be updated to point to the new
    prefix.
    82fa6b43
Makefile 4.8 KB