Changeset 36140


Ignore:
Timestamp:
2013-03-28T13:16:39+01:00 (5 years ago)
Author:
luka
Message:

toolchain: stop generating broken symlink in TOOLCHAIN_DIR/lib

It turns out that the symlink may exists already by the time the toolchain
Makefile gets an opportunity to run. While we asked to replace the target, ln
doesn't do so until after dereferencing the existing symlink. This results in
an unintended symlink that refers to itself. Instead, create the link without
dereferencing any symlinks by using the -n option.

Signed-off-by: John Szakmeister <john@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/toolchain/Makefile

    r32584 r36140  
    6464                mkdir -p "$$dir"; \ 
    6565                cd "$$dir"; \ 
    66                 ln -sf lib lib64; \ 
     66                ln -nsf lib lib64; \ 
    6767                mkdir -p stamp lib usr/include usr/lib ; \ 
    6868        ); done 
Note: See TracChangeset for help on using the changeset viewer.