gcc-final: hard link TARGET-cc -> TARGET-gcc
authorSteven Noonan <steven@uplinklabs.net>
Wed, 4 Nov 2015 07:34:27 +0000 (23:34 -0800)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 8 Nov 2015 14:00:35 +0000 (15:00 +0100)
commit70dffaa1322accf8718643650908da30037a02c3
tree3e6e7c92939b9d746bb139607fa8ebf5eb2c0fce
parentb4718c3a28fc3b178253b24bd6fbb8540a724c7e
gcc-final: hard link TARGET-cc -> TARGET-gcc

Doing a symlink results in incorrect behavior:

    $ x86_64-buildroot-linux-gnux32-cc
    --version
    ccache: error: execv of [...]/x86_64-buildroot-linux-gnux32-cc.br_real.br_real failed: No such file or directory

    $ x86_64-buildroot-linux-gnux32-gcc --version
    x86_64-buildroot-linux-gnux32-gcc.br_real (Buildroot 2015.11-git-00965-g8d89653-dirty) 5.2.0
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Note the double .br_real on the invocation by toolchain-wrapper.

[Thomas: use 'ln -f' instead of 'cp -l', as suggested by Arnout.]

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gcc/gcc-final/gcc-final.mk