From d5234a74b610795ac899a8f4fc2648d2ee1745e5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 26 Mar 2012 10:07:50 +0000 Subject: [PATCH] tools: fix stat symlink if destination already exists SVN-Revision: 31072 --- tools/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/Makefile b/tools/Makefile index 48cfbbcc5f9..87a2940d021 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -102,6 +102,7 @@ endef endif $(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared + @rm -f $@ @if stat --version > /dev/null 2>&1; then \ ln -s `which stat` $@; \ elif gstat --version > /dev/null 2>&1; then \