From 094fd1d01de46a61bbc59343841f762817b9cc81 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 2 Sep 2013 18:06:35 +0200 Subject: [PATCH] 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 Signed-off-by: Peter Korsgaard --- package/gcc/gcc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index 157357cd78..5636c6f255 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 # -- 2.30.2