summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-09-02 16:06:35 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-09-15 21:02:13 (GMT)
commit094fd1d01de46a61bbc59343841f762817b9cc81 (patch)
tree2d252663d3cb70a3c942da123a4b6030e4ad0104
parentdf9bbb779f37ef55136aeb838068cb2be9115b14 (diff)
downloadbuildroot-094fd1d01de46a61bbc59343841f762817b9cc81.tar.gz
buildroot-094fd1d01de46a61bbc59343841f762817b9cc81.tar.bz2
gcc: force symlink creation
The HOST_GCC_CONFIGURE_SYMLINK creates a symbolic link $(@D)/build/configure -> $(@D)/configure for each build step of gcc. However, it was only using 'ln -s' and not 'ln -sf', which was causing problems when doing 'make host-gcc-final-reconfigure' for example, because the configure commands (including this macro) are being re-executed, but the symbolic link already exists. Changing this symbolic link creation to 'ln -sf' fixes this problem. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/gcc/gcc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index 157357c..5636c6f 100644
--- a/package/gcc/gcc.mk
+++ b/package/gcc/gcc.mk
@@ -76,7 +76,7 @@ endef
define HOST_GCC_CONFIGURE_SYMLINK
mkdir -p $(@D)/build
- ln -s ../configure $(@D)/build/configure
+ ln -sf ../configure $(@D)/build/configure
endef
#