summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-11-22 12:35:50 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-11-22 15:32:48 +0100
commitdea4d014eab36e1a3024a83bc21d0feee7b6b24f (patch)
treea058d9e4083a4dd7eb66a21660af26b172273410
parent350e6eb3bd194492cf4991910c33eeecfcffcdb2 (diff)
downloadOSELAS.Toolchain-dea4d014eab36e1a3024a83bc21d0feee7b6b24f.tar.gz
OSELAS.Toolchain-dea4d014eab36e1a3024a83bc21d0feee7b6b24f.tar.xz
cross-gcc: don't preserve mode, etc. when copying links
this breaks if the link target does not exist yet, because it comes later in the loop. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-gcc.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make
index 7e36992..0923024 100644
--- a/rules/cross-gcc.make
+++ b/rules/cross-gcc.make
@@ -177,7 +177,7 @@ $(STATEDIR)/cross-gcc.install:
dst_file="$${dst}/$${file}"; \
rel_file="$${rel}/$${file}"; \
if [ -L "$${file}" ]; then \
- cp -vdpR "$${file}" "$${dst_file}"; \
+ cp -vdR "$${file}" "$${dst_file}"; \
else \
ln -vfs "$${rel_file}" "$${dst_file}"; \
fi || exit 1; \